$length public property
Specifies the length limit of the value to be validated. This can be specified in one of the following forms:
- an integer: the exact length that the value should be of;
- an array of one element: the minimum length that the value should be of. For example,
[8]
. This will overwrite $min. - an array of two elements: the minimum and maximum lengths that the value should be of. For example,
[8, 128]
. This will overwrite both $min and $max.
See also:
Please login to continue.