PHP strripos() Function

PHP strrev() Function
PHP strrpos() Function

what is the syntax of the strripos() function in php?

strripos(string,find,start)
ParameterDescription
stringRequired. Specifies the string to search
findRequired. Specifies the string to find
startOptional. Specifies where to begin the search
PHP strripos() method

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");
?>
PHP strrev() Function
PHP strrpos() Function

Stay up-to-date about PHP!

We don’t spam!

en English
X
Scroll to Top