strrpos function

<?php

$text = '123 456 56 78';
$idx = strrpos($text, '56');

echo $idx; // 8

Leave a Comment

Your email address will not be published. Required fields are marked *