Str::position()
Returns the position of a needle in a string if it can be found
Parameters
Name | Type | Default |
---|---|---|
$string * | string |null |
– |
$needle * | string |
– |
$caseInsensitive | bool |
false |
Return type
int
|false
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
for empty $needle |