the code is not giving any display or error.. i tried echo after while loop and then before all working fine.. just while loop dont give any display or error...
<?php

$offset = 0;

$find = 'Pak';
$string_lenght = strlen($find);

$string = 'Pak Pak Pakistan her dil azam hamara Pak Pak is tan';

while ($string_possition = strpos($string, $find, $offset)){

echo '<strong>'.$find .'</strong> find at ' .$string_possition .'<br>';
$offset = $string_possition + $string_lenght;
}


?>