what is the syntax of the strripos() function in php?
strripos(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 strripos() function
Example 1. In this example, we find the position of the last occurrence of “php” inside the string.
<?php
echo strripos("I love php, I love php too!","PHP");
?>