strripos()

It find the position of the last occurrence of a  substring in a string(case-insensitive)

Example

<?php
echo strripos(“phpcodeccr”,”c”);
?>

Output

8

Share