Re: Variable Scope
| From: | Rasmus Lerdorf | Date: | Sat, 30 Aug 2003 18:54:51 +0000 |
| Subject: | Re: Variable Scope | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4283@lists.php.net to get a copy of this message | ||
On Sat, 30 Aug 2003 LingWitt@insightbb.com wrote:
> That part of the for loop is inherently declaratory.
That's where you are wrong.
for($i=0; $i<10; $i++)
There is no declaration there at all. $i=0 is simply an assignment.
Nothing more, nothing less. Loops and other constructs do not have
separate symbol tables.
-Rasmus