Re: Variable Scope

From: Date: Sat, 30 Aug 2003 14:54:59 +0000
Subject: Re: Variable Scope
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4273@lists.php.net to get a copy of this message
PHP is not C++. Please go and carefully read the whole PHP manual from start to finish, and if you are still unsure of how to use PHP, ask your questions on the general list. Your posts have nothing to do with internals issues. --Wez. > //In the following example, the inner loop 'i' masks the outer loop 'i': > > 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); > }

« previous php.internals (#4273) next »