14 lines
270 B
PHP
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;
|
|
}
|
|
}
|
|
?>
|