note 44221 deleted from control-structures.continue by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 18 Jul 2004 18:51:44 +0000 |
| Subject: | note 44221 deleted from control-structures.continue by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73568@lists.php.net to get a copy of this message | ||
Note Submitter: e@arix.com
----
one thing that isn't clear from the above docs is whether continuing returns control to the
incrementor in a for loop or to the evaluator i.e. the two statements below are equivalent:
for ($i = 0; $i < 3; $i++) your-code;
$i = 0;
while ($i < 3) {
your-code;
$i++;
}
so the question is: if your-code = continue, will $i++ ever run? the answer is yes.