grapheme_stripos
(No version information available, might be only in CVS)
grapheme_stripos — Find position (in grapheme units) of first occurrence of a case-insensitive string
Описание
Procedural style
Find position (in grapheme units) of first occurrence of a case-insensitive string which character in haystack to start searching. The position returned is still relative to the beginning of haystack.
Список параметров
- haystack
-
The string to look in
- needle
-
The string to look for
- offset
-
The optional offset parameter allows you to specify
Возвращаемые значения
Returns the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE.
Примеры
Пример #1 grapheme_stripos() example
< ?php
TODO
?>
Результат выполнения данного примера:
TODO
Смотрите также
TODO
Коментарии
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';}