what is the syntax of the STRRPOS() function in php?
strrpos(string,find,start)
Parameter | Description |
---|---|
string | Required. Specifies the string to search |
find | Required. Specifies the string to find |
start | Optional. Specifies where to begin the search |
examples of the STRRPOS() function
Example 1. In this example, we find the position of the last occurrence of “php” inside the string.
<?php
echo strrpos("I love php, I love php too!","php");
?>