note 106023 added to language.operators.increment
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 03 Oct 2011 21:16:21 +0000 |
| Subject: | note 106023 added to language.operators.increment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183619@lists.php.net to get a copy of this message | ||
Notice the different output of the following two for-loops.
<?php
for ($i='a'; $i<='y'; $i++) {
echo "$i ";
}
?>
This one will output the characters 'a' to 'y'.
<?php
for ($i='a'; $i<='z'; $i++) {
echo "$i ";
}
?>
This second one will output the characters 'a' to 'z' AND after that the strings
'aa', ..., 'az', 'ba', ..., 'bz', 'ca', ... and so
on to 'yz'.
----
Server IP: 69.147.83.197
Probable Submitter: 79.225.183.126
----
Manual Page -- http://www.php.net/manual/en/language.operators.increment.php
Edit -- https://master.php.net/note/edit/106023
Del: integrated -- https://master.php.net/note/delete/106023/integrated
Del: useless -- https://master.php.net/note/delete/106023/useless
Del: bad code -- https://master.php.net/note/delete/106023/bad+code
Del: spam -- https://master.php.net/note/delete/106023/spam
Del: non-english -- https://master.php.net/note/delete/106023/non-english
Del: in docs -- https://master.php.net/note/delete/106023/in+docs
Del: other reasons-- https://master.php.net/note/delete/106023
Reject -- https://master.php.net/note/reject/106023
Search -- https://master.php.net/manage/user-notes.php