Re: Variable Scope
| From: | LingWitt at insightbb dot com | Date: | Sat, 30 Aug 2003 19:26:51 +0000 |
| Subject: | Re: Variable Scope | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-4291@lists.php.net to get a copy of this message | ||
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.