note 55494 added to control-structures.for
| From: | JustinB at harvest dot org | Date: | Thu, 04 Aug 2005 23:23:13 +0000 |
| Subject: | note 55494 added to control-structures.for | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93103@lists.php.net to get a copy of this message | ||
For those who are having issues with needing to evaluate multiple items in expression two, please
note that it cannot be chained like expressions one and three can. Although many have stated this
fact, most have not stated that there is still a way to do this:
<?php
for($i = 0, $x = $nums['x_val'], $n = 15; ($i < 23 && $number != 24); $i++, $x
+ 5;) {
// Do Something with All Those Fun Numbers
}
?>
----
Manual Page -- http://www.php.net/manual/en/control-structures.for.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55494
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55494&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55494&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55494&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55494&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55494&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55494&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55494&report=yes
Search -- http://master.php.net/manage/user-notes.php