PHP Function Grapheme_Stripos
php function grapheme_stripos finds the position of first occurrence of substring in another string. It is a binary-safe version of strpos() and is case-insensitive.
Its input is taken from the haystack string, which must be encoded in UTF-8. It starts searching from the haystack index specified in the parameter offset. The search is terminated when the substring found is found or when the haystack is exhausted. It returns the haystack string starting at the haystack index of the first occurrence of the given substring.
if start_search is not a valid haystack index, an empty string is returned. start_search must be a valid UTF-8 index that is either zero or a positive value less than or equal to the haystack length in bytes plus one. If start_search is negative, it must be a value that counts from the end of the haystack.
The optional parameter $offset lets you specify the index in the haystack where to start the search as a grapheme unit (not bytes or characters). This way the position that is returned is still relative to the beginning of the haystack, even if it is negative.