Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4264 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35821 invoked by uid 1010); 30 Aug 2003 14:22:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35785 invoked from network); 30 Aug 2003 14:22:04 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 30 Aug 2003 14:22:04 -0000 Received: from jdi.jdimedia.nl (jdi.jdimedia.nl [212.204.192.51]) by jdi.jdimedia.nl (8.12.4/8.12.4) with ESMTP id h7UELvus010473; Sat, 30 Aug 2003 16:21:58 +0200 Date: Sat, 30 Aug 2003 16:21:57 +0200 (CEST) X-X-Sender: derick@jdi.jdimedia.nl To: LingWitt@insightbb.com cc: internals@lists.php.net In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Variable Scope From: derick@php.net (Derick Rethans) 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/ -------------------------------------------------------------------------