PHP code:
$b = 1;
$ab = 100;
for ($b; $b < $ab; $b++)
{
$len = strlen($b);
$c = 0;
for ($c; $c < $len; $c++)
{
$split = str_split($b);
if ($split[$c] == 5)
{
echo $b . ',';
}
}
}
It's result is :
5,15,25,35,45,50,51,52,53,54,55,55,56,57,58,59,65,75,85,95,
But I want remove the final comma and get the last value.