Posted By

wza on 12/06/10


Tagged

php textmate zero leading


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

filser


add leading zeros php


 / Published in: Other
 

  1. function leadingZeros($num,$numDigits) {
  2. return sprintf("%0".$numDigits."d",$num);
  3. }

Report this snippet  

You need to login to post a comment.