Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15265 invoked by uid 1010); 31 Aug 2003 00:35:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15241 invoked by uid 1007); 31 Aug 2003 00:35:21 -0000 Message-ID: <20030831003521.15228.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "DvDmanDT" References: Date: Sun, 31 Aug 2003 02:36:13 +0200 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Posted-By: 213.67.65.148 Subject: Re: [PHP-DEV] Variable Scope From: dvdmandt@telia.com ("DvDmanDT") As I've understood it your example is like only valid in the latest C++ standards or something... Possibly also in newer C... But it's new... MSVC6 does not have that implented I think... But I might be pretty badly misstaken on this one... -- // DvDmanDT MSN: dvdmandt@hotmail.com Mail: dvdmandt@telia.com skrev i meddelandet news:E83F6ABB-DB1F-11D7-98BE-000393030CE6@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.