PHP strrpos() Function

PHP strripos() Function
PHP strspn() Function

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

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

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");
?>
PHP strripos() Function
PHP strspn() Function
en English
X
Scroll to Top