MB_STRIPOS(3) 1 MB_STRIPOS(3)
mb_stripos - Finds position of first occurrence of a string within another, case insensitive
SYNOPSIS
int mb_stripos (string $haystack, string $needle, [int $offset], [string $encoding = mb_internal_encoding()])
DESCRIPTION
mb_stripos(3) returns the numeric position of the first occurrence of $needle in the $haystack string. Unlike mb_strpos(3), mb_stripos(3)
is case-insensitive. If $needle is not found, it returns FALSE.
PARAMETERS
o $haystack
- The string from which to get the position of the first occurrence of $needle
o $needle
- The string to find in $haystack
o $offset
- The position in $haystack to start searching
o $encoding
- Character encoding name to use. If it is omitted, internal character encoding is used.
RETURN VALUES
Return the numeric position of the first occurrence of $needle in the $haystack string, or FALSE if $needle is not found.
SEE ALSO
stripos(3), strpos(3), mb_strpos(3).
PHP Documentation Group MB_STRIPOS(3)