Previous Page
locale()

Solar_Filter_ValidateMaxLength
validateMaxLength()

Next Class
Solar_Filter_ValidateMimeType

validateMaxLength()

public bool validateMaxLength ( mixed $value, mixed $max )

Validates that a string is no longer than a certain length.

Parameters

  • (mixed) $value: The value to validate.
  • (mixed) $max: The value must have no more than this many characters.

Returns

  • (bool) True if valid, false if not.

Description

Validates that a string is no longer than a certain length.