Find the Index of First Occurrence of a Substring in a String using PHP July 17, 2021 PHP 0 Comments 330 Views strpos function <?php $text = '123 456 56 78'; $idx = strpos($text, '56'); echo $idx; // 5
Leave a Comment
Cancel reply