25. Apr, 2008 3 Comments
<?php $id = 3; echo sprintf("%04d",$id); //result 0003 ?>
are you drunk or something? check “retuslt”.
anyway.
str_pad() is another nice solution for this.
hehehe my bad, im not drunk. thanks Ace
Notify me of followup comments via e-mail
are you drunk or something?
check “retuslt”.
anyway.
str_pad() is another nice solution
for this.
hehehe my bad, im not drunk. thanks Ace