0

I have a for loop that looks like :

for ( $i=00001; $i < 55555; $i++) {
     echo $i;
}

I get the following output

1 2 3 4 5 etc.

What I want is :

00001 00002 00003 00004 .... 55555

How can I retain the significant digits ?

Joel Parker
  • 295
  • 1
  • 4
  • 17

0 Answers0