for() problem on php-4.0.6
| From: | Mesut Tunga | Date: | Mon, 09 Jul 2001 07:39:31 +0000 |
| Subject: | for() problem on php-4.0.6 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56897@lists.php.net to get a copy of this message | ||
Hi All,
a for statment like below has been worked lowe php versions:
for ( $idx = "01"; $idx <= 12; $idx++ )
{
echo " <option value=\"$idx\">$idx\n";
}
like 01, 02, 03, 04, ... 12
but same statment on 4.0.6 version, it writes
01, 2, 3, 4, ... 12
what is the different between verisons? or how can I solve this?
Regards...
Mesut...