programming-examples/php/_Basics/PHP program to print Reverse of any number.php
2019-11-15 12:59:38 +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;
}
}
?>