Re: user-defined superglobals?
| From: | Tom Rogers | Date: | Sat, 23 Aug 2003 18:24:29 +0000 |
| Subject: | Re: user-defined superglobals? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160522@lists.php.net to get a copy of this message | ||
Hi,
Sunday, August 24, 2003, 3:45:33 AM, you wrote:
MN> Hi List,
MN> is there a way (mybe in php5?) to define/declare a global var as a
MN> superglobal, so that I can use this var like the known superglobals
MN> ($_GET, $_SESSION, etc.) ???
MN> If not, is there a list for "feature requests"?
MN> Regards,
MN> Matthias
You can always add to one of the superglobals, remembering not to have
a name clash with get or post variables.
$_GET['test'] = 'Hi";
now that will be available in all functions.
--
regards,
Tom