note 32189 added to control-structures.for

From: Date: Tue, 20 May 2003 01:51:51 +0000
Subject: note 32189 added to control-structures.for
Groups: php.notes 
Request: Send a blank email to php-notes+get-48634@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/control-structures.for.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32189 Approve Note -- http://master.php.net/manage/user-notes.php?action=approve+32189&report=yes Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32189&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32189&report=yes

« previous php.notes (#48634) next »