Multibyte enabled version of strpos().
Not all adapters must support interpreting - thus applying - passed
numeric values as ordinal values of a character.
public static strpos ( string $haystack, string $needle, integer $offset, array $options = [] ) : integer | ||
$haystack | string | The string being checked. |
$needle | string | The string to find in the haystack. |
$offset | integer | If specified, search will start this number of characters counted from the beginning of the string. The offset cannot be negative. |
$options | array | Allows for selecting the adapter to use via the `name` options. Will use the `'default'` adapter by default. |
return | integer | Returns the numeric position of the first occurrence of the needle in the haystack string. If needle is not found, it returns `false`. |