Forum Moderators: coopster
for ($i = 0; $i < 100; $i++) {
echo $i.'<br>'; }
?>
instead of
1 2 3 4 5 ...
i want the result of
0000001 0000002 0000003 0000004 ...
can anybody help?
advance thanks..
<?php $x = 122; $y = sprintf("%06d",$x); echo $y;