grapheme_stristr

PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0
grapheme_stristr - Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack
Manual
Code Examples

grapheme_stristr( string$haystack, string$needle, [bool$beforeNeedle = false] ): string|false

Returns part of haystack string starting from and including the first occurrence of case-insensitive needle to the end of haystack.

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 needle).

Return Values

Returns the portion of $haystack, or false if $needle is not found.

Related Functions

Example of grapheme_stristr

Show all examples for grapheme_stristr

PHP Version:


Function grapheme_stristr:

Internationalization Functions Functions

Most used PHP functions