Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5824 invoked by uid 1010); 30 Aug 2003 19:28:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5789 invoked from network); 30 Aug 2003 19:28:22 -0000 Received: from unknown (HELO sccimhc02.asp.att.net) (63.240.76.164) by pb1.pair.com with SMTP; 30 Aug 2003 19:28:22 -0000 Received: from insightbb.com (12-223-87-232.client.insightbb.com[12.223.87.232]) by sccimhc02.asp.att.net (sccimhc02) with SMTP id <20030830192651im2007n4mqe>; Sat, 30 Aug 2003 19:26:52 +0000 Date: Sat, 30 Aug 2003 15:26:51 -0400 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed To: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: X-Mailer: Apple Mail (2.552) Subject: Re: [PHP-DEV] Variable Scope From: LingWitt@insightbb.com Not so. I supplied this version earlier: int array[] = {1, 2, 3, 4, 5}; for (int i = 0; i < 5; i++) { int num = array[i]; printf("%d", num); for (int i = 0; i < 5; i++) printf("%d", i * num); } On Saturday, Aug 30, 2003, at 15:19 America/New_York, Rasmus Lerdorf wrote: > It was based on the for construct from C and works exactly the same > way.