indexOf
Returns the index of the first occurrence of $needle in the string, and false if not found. Accepts an optional offset from which to begin the search.
Description
int|bool indexOf(string $needle, int $offset)
Parameters
-
string $needle
Substring to look for. - int $offset
Offset from which to search.
Return Value
int|bool
The occurrence's index if found,
otherwise false.