for loop changes?
| From: | Michael Gerholdt | Date: | Sat, 15 Sep 2001 02:24:43 +0000 |
| Subject: | for loop changes? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67422@lists.php.net to get a copy of this message | ||
In PHP Version 4.0.3pl1
for ($i='01';$i<=12;$i++)
the increment used to produce
01
02
03
...
09
10
11
12
but in
PHP Version 4.0.6
the identical script
for ($i='01';$i<=12;$i++)
produces:
01
2
3
...
9
10
11
12
I want the week and month days to have leading zeros - how can I make the
new environment replicate the old?
thanks
Mike