Re: Variable Scope
| From: | LingWitt at insightbb dot com | Date: | Sun, 31 Aug 2003 01:12:58 +0000 |
| Subject: | Re: Variable Scope | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4297@lists.php.net to get a copy of this message | ||
I thank you for your open-mindedness, but I must admit I was in the fault. I supplied a version from a modern language such as C++.
On Saturday, Aug 30, 2003, at 20:36 America/New_York, DvDmanDT wrote:
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 <LingWitt@insightbb.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++) {-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.phpint 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.