programming-examples/php/Basics/PHP program to print Reverse of any number.php
2019-11-18 14:44:36 +01:00

14 lines
270 B
PHP

<?php
if(isset($_POST['rev2']))
{
$rev=0;
$num=$_POST['rev'];
while($num>=1)
{
$re=$num%10;
$rev=$rev*10+$re;
$num=$num/10;
}
}
?>