Check maximum length of a string.
App::Utility()->maxLength(Value,Options)
Parameter |
Description |
---|---|
Value |
Value to check |
Options |
Set maximum length |
See bellow example:
$return = App::Helper('Validation')->maxLength('123456',array('maxlength'=>10));