You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
270 B
PHTML
14 lines
270 B
PHTML
5 years ago
|
<?php
|
||
|
if(isset($_POST['rev2']))
|
||
|
{
|
||
|
$rev=0;
|
||
|
$num=$_POST['rev'];
|
||
|
|
||
|
while($num>=1)
|
||
|
{
|
||
|
$re=$num%10;
|
||
|
$rev=$rev*10+$re;
|
||
|
$num=$num/10;
|
||
|
}
|
||
|
}
|
||
|
?>
|