title: How to make "uniqid" only give numbers?
body: <p>I have the following code which I have put together from different tutorial examples:</p>
  
  <pre><code>&lt;?php
  
  $stamp = date("Ymdhis");
  $random_id_length = 6;
  $rndid = crypt(uniqid(rand(),1)); 
  $rndid = strip_tags(stripslashes($rndid)); 
  $rndid = str_replace(".","",$rndid); 
  $rndid = strrev(str_replace("/","",$rndid));
  $rndid = substr($rndid,0,$random_id_length); 
  $orderid = "$stamp-$rndid";
  $orderid = str_replace(".", "", "$orderid");
  echo($orderid);
  
  ?&gt;
  </code></pre>
  
  <p>FIDDLE: <a href="http://phpfiddle.org/main/code/27d-qfw" rel="noreferrer">http://phpfiddle.org/main/code/27d-qfw</a></p>
  
  <p>I would like this to create a number; the current time, followed by a 6 digit random number.</p>
  
  <p>For example: <code>20130710045730-954762</code></p>
  
  <p>However at the moment the random digits also include letters.</p>
  
  <p>For example: <code>20130710045730-Z3sVN2</code></p>
  
  <p>How can I edit the code to just include numbers? Any help is appreciated.</p>