strrpos
strrpos
(PHP 4, PHP 5, PHP 7)
strrpos — Find the position of the last occurrence of a substring in a string
Description
int strrpos ( string $haystack , string $needle [, int $offset = 0 ] )
Find the numeric position of the last occurrence of needle
in the haystack
string.
Parameters
-
haystack
-
The string to search in.
-
needle