Find the Index of Last Occurrence of a Substring in a String using PHP July 18, 2021 PHP 0 Comments 367 Views strrpos function <?php $text = '123 456 56 78'; $idx = strrpos($text, '56'); echo $idx; // 8
Leave a Comment
Cancel reply