note 60177 deleted from control-structures.for by danbrown

From: Date: Mon, 07 Dec 2009 16:04:52 +0000
Subject: note 60177 deleted from control-structures.for by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163649@lists.php.net to get a copy of this message
Note Submitter: FatalError ---- 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.

« previous php.notes (#163649) next »