Re: Variable Scope

From: Date: Sat, 30 Aug 2003 14:21:57 +0000
Subject: Re: Variable Scope
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4264@lists.php.net to get a copy of this message
On Sat, 30 Aug 2003 LingWitt@insightbb.com wrote: > The inner loop $i doesn't mask the outer loop $i. > Thus, the whole things gets screwed up. ? This example works perfectly fine. What's your problem here? What do you mean with "mask the outer loop"? Of course if you modify $i INSIDE the loop the outer one is affected. Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------

« previous php.internals (#4264) next »