|
Previous Page |
Solar_Filter_ValidateNotInKeys |
Next Class |
validateNotInKeys()
public
bool
validateNotInKeys (
mixed $value,
array $array
)
Validates that a value is not a key in the list of allowed options.
Parameters
- (mixed)
$value: The value to validate. - (array)
$array: An array of disallowed options.
Returns
- (bool) True if valid, false if not.
Description
Validates that a value is not a key in the list of allowed options.
Given an array (second parameter), the value (first parameter) must not match any the array keys.