I have made a program to reverse the number but every time 0 gets appended to the result.
0
$num = 675; $rev = 0; while($num > 0) { $temp = $n