How can I increase 0000 by 1?

Posted by zx on Stack Overflow See other posts from Stack Overflow or by zx
Published on 2010-04-18T07:12:23Z Indexed on 2010/04/18 7:13 UTC
Read the original article Hit count: 189

Filed under:

$i=0000;
while($i<=1231)
{
print "$i";
$i++;
}

Does anyone know why this isn't working? It isn't increasing it by 0001 0002 0003 0004

instead by 0 1 2

Thank you in advance.

© Stack Overflow or respective owner

Related posts about php