PHP 8.5.0 Beta 1 available for testing

Voting

: min(zero, zero)?
(Example: nine)

The Note You're Voting On

Anonymous
7 years ago
As expected, grapheme_stripos() does return boolean FALSE if the needle is not found in the haystack.
Use strict type comparison to check for that condition, like:

if (FALSE === grapheme_stripos('a', 'b')) {print 'Needle not found';}

<< Back to user notes page

To Top