Jump to content

Need help with numbers...


MrXander

Recommended Posts

Hi guys,

 

Need a little help, I currently have the following script:

 

$num = 1;

while ($num <= "385"){

echo $num;

$num = $num + 1;

}

 

But what I need it to do is the following:

 

0001

0002

(plenty of numbers here)

0068

0069

0070

0071

(plenty of numbers here)

0123

(plenty of numbers here)

1234

 

etc etc.

 

How can I do this?

Any help would be appreciated!!

Link to comment
https://forums.phpfreaks.com/topic/95880-need-help-with-numbers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.