note 32189 deleted from control-structures.for by alindeman
| From: | alindeman@php.net | Date: | Tue, 20 May 2003 01:55:37 +0000 |
| Subject: | note 32189 deleted from control-structures.for by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48635@lists.php.net to get a copy of this message | ||
Note Submitter: anon@anon.com
----
This might be a given, but if so I didn't pick up on it..
When you do something like
for ( $i = 0; ( $i < 10 or $j <3 ); $i++ ) {
$j++
}
it will not end after 3 runs - in other words the count variable must be added within the for loop
def. itself