+ 1
How to print reverse of any given number using do.. while loop in php?
2 Respostas
0
$num = 23456;
$revnum = 0;
while ($num > 1)
{
$rem = $num % 10;
$revnum = ($revnum * 10) + $rem;
$num = ($num / 10);
}
echo "Reverse number of 23456 is: $revnum";
source : https://www.javatpoint.com/php-reverse-number
0
i want to perform task using do while loop.