Description
int
mb_strpos ( string haystack, string needle [, int offset [, string encoding]])
mb_strpos() returns the numeric position of
the first occurrence of needle in the
haystack string_ If
needle is not found, it returns FALSE_
mb_strpos() performs multi_byte safe
strpos() operation based on number of
characters_ needle position is counted
from the beginning of the haystack_ First
character's position is 0_ Second character position is 1, and so
on_
If encoding is omitted, internal
character encoding is used_ mb_strrpos()
accepts string for
needle where strrpos()
accepts only character_
offset is search offset_ If it is not
specified, 0 is used_
encoding is character encoding name_ If it
is omitted, internal character encoding is used_
See also mb_strpos(),
mb_internal_encoding(),
strpos()