Input validation rule that tests for minimum (and optionally, maxmimum) textual field size.
A username field commonly needs to be of a specific size range.
$form->addRule (new SizeRangeRule ('fieldName', 4, 12));
This example checks that the length of the value in the field “fieldName” is at least four characters and no more than 12 characters.