Str::position()
Returns the position of a needle in a string if it can be found
Str::position(string $string, string $needle, bool $caseInsensitive = false): int|bool
Parameters
Name | Type | Default |
---|---|---|
$string * | string |
– |
$needle * | string |
– |
$caseInsensitive | bool |
false |
Return type
int
|bool