Jump to content

Range help


graham23s

Recommended Posts

Hi Guys,

 

i'm doing a range for minutes in an hour like:

 

$mins = range(00,59);

 

for the minutes in an hour but when i run it in a foreach it's getting displayed as:

 

1

2

3

 

instead of

 

01

02

03

 

it seems to cut the first 0 off, is there any other way of keeping it like the range i have specified ata ll?

 

thanks guys

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/80337-range-help/
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.