note 41311 deleted from control-structures.for by didou
| From: | didou@php.net | Date: | Mon, 17 Jan 2005 17:51:49 +0000 |
| Subject: | note 41311 deleted from control-structures.for by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83513@lists.php.net to get a copy of this message | ||
Note Submitter: ben [at] cx9 [dot] net
----
<maliadavid at hotmail dot com> wrote:
<quote>
//doing math with characters is fine!
for($letter = 'a'; $letter <= 'z'; $letter++)
echo "$letter ";
Will display:
a b c d e f g h i j k l m n o p q r s t u v w x y z
</quote>
NO, it will not!
Check out previous posting from <hayes029 at bama dot ua dot edu>:
<quote>
for ($i="A"; $i <= "Z"; $i++) echo "$i<br>";
will actually output A-Z, then begin again with AA, AB, etc. until it finishes with YZ. Similarly,
</quote>
the same counts for your code, it's just lowercase...
Just wanted to note this,
Ben