Re: user-defined superglobals

From: Date: Sun, 04 Jul 2004 07:12:34 +0000
Subject: Re: user-defined superglobals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189660@lists.php.net to get a copy of this message
About the only user-defined superglobals are constants. If you really want to get the value of a global variable while inside of a function, you could just use GLOBAL. Or if you REALLY wanted to, you could store the variables in the $_SESSION superglobal array. But I'm curious, why do you want superglobal-like access for your database connection? Jason

« previous php.general (#189660) next »