Posted By

BenJD on 02/23/11


Tagged


Versions (?)

Pad Zeroes


 / Published in: PHP
 

  1. function paddzeroes($subject,$length)
  2. {
  3. while(strlen($subject) != $length )
  4. {
  5. $subject = "0".$subject;
  6. }
  7.  
  8. return $subject;
  9. }

Report this snippet  

You need to login to post a comment.