for loops
| From: | Peter | Date: | Thu, 30 May 2002 03:46:37 +0000 |
| Subject: | for loops | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99847@lists.php.net to get a copy of this message | ||
Just a query ... has any one else noticed this
for($i = a; $i < z; $i++)
{
print $i;
echo "<BR>";}
will print out a right down to yz
but replace the letters with numbers eg
for($i = 1; $i < 10; $i++)
{
print $i;
echo "<BR>";}
and it prints 1 thru to 10
and any one know a reason for this?
Cheers
Peter
"the only dumb question is the one that wasn't asked"