Re: Idea to extend language: Explicitly setting variable scope inside user defined function (longer)
| From: | Kristian Koehntopp | Date: | Tue, 22 Oct 2002 06:46:09 +0000 |
| Subject: | Re: Idea to extend language: Explicitly setting variable scope inside user defined function (longer) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89883@lists.php.net to get a copy of this message | ||
On Tuesday 22 October 2002 03:19, Hans Zaunere wrote:
> While some of the scoping tricks proposed seem like potential overkill,
> I've yearned for a way to explicitly declare a variable a
> "super-global".
We already have that. If $avar is a variable, $GLOBALS["avar"] is the
superglobal access to that variable. Always has been since the dawn of time.
Kristian