Jump to content

[SOLVED] how to get 3 digits in a for loop


samoht

Recommended Posts

hello all,

 

I have a simple for loop to populate a select box from 1 to 300 the only problem is the client wants the values to always have 3 digits - so 1 should be 001 and 2 should be 002 etc and 10 would be 010.

 

I don't think number_format() will help me - What can I do?

 

Thanks

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.