note 29010 deleted from control-structures.for by didou
| From: | didou@php.net | Date: | Sun, 26 Oct 2003 13:20:30 +0000 |
| Subject: | note 29010 deleted from control-structures.for by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59310@lists.php.net to get a copy of this message | ||
Note Submitter: cappa@enemy.org
----
<?
for($i = "a"; $i < "z"; $i++)
{
echo $i . "\n";
}
?>
will print a through y (nothing special)
<?
for($i = "a"; $i <= "z"; $i++)
{
echo $i . "\n";
}
?>
will print a through yz (weird)
<?
for($i = "z"; $i > "a"; $i--)
{
echo $i . "\n";
}
?>
prints never ending "za" (very weird!)