PHP.nl

iconv_strrpos

iconv_strrpos

Finds the last occurrence of a needle within a haystack

 **iconv_strrpos** string $haystack string $needle  $encoding

Finds the last 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 . strrpos``iconv_strrpos``encoding

haystackThe entire string.

needleThe searched substring.

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 last occurrence of in . needle``haystack

If is not found, will return false. needle``iconv_strrpos

strrpos``iconv_strpos``mb_strrpos