title: Reverse the given number in php
body: <p>I am using the below code for reverse the order of given number.</p>
  
  <pre><code>$a=$_GET['get'];
  if($a&gt;0)
  {
  $b=$a%10;
  echo $b;
  $a=$a/10;
  }
  </code></pre>
  
  <p>But i ll get only last digit,can any one help me. If ok means please explain how this process is going?</p>