grapheme_strstr
PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0
grapheme_strstr - Returns part of haystack string from the first occurrence of needle to the end of haystack
Manual
grapheme_strstr(
string$haystack,
string$needle,
[bool$beforeNeedle = false] ): string|false
Returns part of haystack string from the first occurrence of needle to the end of haystack (including the needle).
Parameters
- haystack
-
The input string. Must be valid UTF-8.
- needle
-
The string to look for. Must be valid UTF-8.
- beforeNeedle
-
If true, grapheme_strstr() returns the part of the haystack before the first occurrence of the needle (excluding the needle).
Return Values
Returns the portion of string, or false if needle is not found.