note 60177 added to control-structures.for

From: Date: Wed, 28 Dec 2005 19:56:57 +0000
Subject: note 60177 added to control-structures.for
Groups: php.notes 
Request: Send a blank email to php-notes+get-100882@lists.php.net to get a copy of this message
To add to my previous note, I found a big difference between the two statements. With a "while" statement, you can use $a (from my examples) outside the "while" statement. However, with the "for" statement, you can only use $a within the scope of that statement. In other words, you can't use $a after that "for" statement and expect it to still be equal to the same number it was before. ---- Manual Page -- http://www.php.net/manual/en/control-structures.for.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60177 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60177&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60177&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100882) next »