bool validate(
mixed
$selected_key, array
$array)
|
|
Tests whether input for parameter selected_key is a key in the supplied array. Useful when dealing with selects and you'll make sure that the user selects only one of the available options and not a custom one.
Returns boolean true if selection is valid.
Tags:
Overrides
HTML_QuickForm_Rule::validate() (Validates a value)
Parameters: