Definition
The strripos() function finds the position of the last occurrence of a string(case-insensitive) inside another string.
Syntax
strripos(string, find, start)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to search. |
find |
Required. Specifies the string to find. |
start |
Optional. Specifies where to begin the search. |
Example
<?php
echo strripos("Welcome to the PHP Tutorials! Learn PHP quickly.", "PHP");