iconv_strpos
iconv_strpos
Finds position of first occurrence of a needle within a haystack
**iconv_strpos** string $haystack string $needle int $offset $encoding
Finds position of first occurrence of a
within a .
needle``haystack
In contrast to , the return value of
is the number of characters that
appear before the needle, rather than the offset in bytes to the
position where the needle has been found. The characters are counted
on the basis of the specified character set .
strpos``iconv_strpos``encoding
haystackThe entire string.
needleThe searched substring.
offset
The optional parameter specifies
the position from which the search should be performed.
If the offset is negative, it is counted from the end of the string.
offset
encoding
If parameter is omitted or null,
are assumed to be encoded in
.
encoding``stringiconv.internal_encoding
If or is
not a string, it is converted to a string and applied as the ordinal
value of a character.
haystack``needle
Returns the numeric position of the first occurrence of
in .
needle``haystack
If is not found,
will return false.
needle``iconv_strpos
strpos``iconv_strrpos``mb_strpos