PHP Function Strripos - Find the Position of Last Occurrence of a String Inside Another String
The php function strripos is an in-build function which is used to find the position of last occurrence of a string inside another string. It returns a numeric value which indicates the index of the search string. It is case-insensitive and binary-safe.
The strripos() function is similar to the strpos() function, except that it is case-insensitive and returns a numeric value which indicates the position of the last occurrence of the search string. In addition, this function also accepts an additional parameter, $start, which defines the position from where the search should begin.
In order to use the strripos() function, you need to pass in two parameters - the first is the string upon which the search needs to be done, and the second is the string for which the search needs to be made. The function will then check if the searched string is available in the given string, and if it is not, it will return the Boolean value FALSE.
Most php functions require a single parameter in order to function, but the strripos() function requires two. The required parameters are as follows:
haystack = ''