Return a string indicating the type of operator that it is, or false if not an operator
Available since version 3.0.108.
Usage
// basic usage
$bool = Selectors::getOperatorType(string $operator);
// usage with all arguments
$bool = Selectors::getOperatorType(string $operator, bool $is = false);
Arguments
Name | Type(s) | Description |
---|---|---|
operator | string | Operator to check |
is (optional) | bool | Change return value to just boolean true or false. |
Return value
bool
string
Selectors methods and properties
API reference based on ProcessWire core version 3.0.236