Validator to check the length of a string.
Validator to check the length of a string.
__construct($min=null, $max=null) ¶Create a new AnewtValidatorLength instance.
$minMinimum allowable value. Provide null for no limit.
$maxMaximum allowable value. Provide null for no limit.
is_valid($value) ¶Checks for validity.
The return value should be true for valid values, and false otherwise.
$valueThe value to check for validity.
True if the value is valid, false otherwise.
AnewtContainer::_to_array()AnewtContainer::_add()AnewtContainer::delete()AnewtContainer::get()AnewtContainer::_isset()AnewtContainer::_seed()AnewtContainer::setdefault()AnewtContainer::getdefault()AnewtContainer::set()AnewtContainer::__isset()AnewtContainer::__set()AnewtContainer::__construct()AnewtContainer::is_set()AnewtContainer::add()AnewtContainer::_getdefault()AnewtContainer::__unset()AnewtContainer::seed()AnewtContainer::to_array()AnewtContainer::_get()AnewtContainer::__get()AnewtContainer::keys()AnewtContainer::clear()AnewtContainer::_keys()AnewtContainer::_set()AnewtValidator::__construct()