maxLength
Checks if the number of characters in the value equals or is below the given maximum
Parameters
Name | Type | Default |
---|---|---|
$value * | string |
– |
$max * | mixed |
– |
Return type
bool
This validator works like (sheet: validators/max) but it always checks for string length, even if a numeric value is given. The max
validator will check for the value of the number in that case.