PHP strrpos() May 23, 2012 Pramod T P It finds the position of the last occurrence of a substring in a string Example <?php echo strrpos(“phpcodeccr”,”p”); ?> Output 2