grapheme_strposFind position (in grapheme units) of first occurrence of a string DescriptionProcedural style
intfalse grapheme_strpos(
string $haystack,string $needle,int $offset = 0,string $locale = "") Find position (in grapheme units) of first occurrence of a string Parameters
Return Values
Returns the position as an integer. If Changelog
ExamplesExample #1 grapheme_strpos example The above example will output: 2 Example #2 Using the
By default, Unicode variation selectors (U+FE0E text, U+FE0F emoji) are ignored
during comparison. Using the
The above example will output: int(0) bool(false) See Also
|