Re: nested functions

From: Date: Wed, 16 May 2001 10:12:08 +0000
Subject: Re: nested functions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-53007@lists.php.net to get a copy of this message
elias wrote: > good question...I might need an answer when you get one. Why? Ok, I have a perl-counter script which is included to shtml-pages with SSI. Now I want to add some PHP pages to my site. So I need a PHP-function that does the same as the perl-script does. In the script I have a lot of global variables and some auxiliary functions. In PHP these variables became local variables of the counter() function and the auxiliary functions became nested functions. The auxiliary nested functions have to have access to a lot of variables from the counter() function, and they even have to change them. I already added all the variables (some with call by reference) but I think it would have been easier if I had access the counter()-variables within the nested auxiliary functions direct. Hannes PS: I wonder why my original message does not appear in Outlook Express News-Folder... just the answers?

« previous php.general (#53007) next »