Does the given string have an operator in it?
Usage
// basic usage
$bool = Selectors::stringHasOperator(string $str);
// usage with all arguments
$bool = Selectors::stringHasOperator(string $str, bool $getOperator = false);
Arguments
Name | Type(s) | Description |
---|---|---|
str | string | String that might contain an operator |
getOperator (optional) | bool | Specify true to return the operator that was found, or false if not (since 3.0.108) |
Return value
bool
Selectors methods and properties
API reference based on ProcessWire core version 3.0.236