InputfieldSelect::isOption()
Returns whether the provided value is one of the available options
Usage
// basic usage
$bool = $inputfieldSelect->isOption($value);
// usage with all arguments
$bool = $inputfieldSelect->isOption($value, array $options = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$value | string int | |
$options (optional) | array | Array of options to check, or omit if using this classes options. |
Return value
bool
InputfieldSelect methods and properties
API reference based on ProcessWire core version 3.0.251