Checks that a field is short enough.
boolean Core_Valid::max_length( string $value , integer $length )
参数列表
参数 类型 描述 默认值 $value
string
Value $length
integer
Maximum length required
boolean
public static function max_length($value, $length)
{
return UTF8::strlen($value) <= $length;
}