iconv_strpos()
iconv_strpos - Finds position of first occurrence of a needle within a haystack
Syntax
int iconv_strpos (
string $haystack,
string $needle,
int $offset,
string $charset)
Arguments
- haystack - The entire string.
- needle - The searched substring.
- offset - The optional offset parameter specifies the position from which the search should be performed.
- charset - If charset parameter is omitted, string are assumed to be encoded in iconv.internal_encoding.
Description
Finds position of first occurrence of a needle within a haystack.
Version
PHP 5
Return value
Returns the numeric position of the first occurrence of needle in haystack.