Definition
The strrpos() function finds the position of the last occurrence of a string(case-sensitive) inside another string.
Syntax
strrpos(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 strrpos("Welcome to the PHP Tutorials. Learn php quickly.", "php");