Re: Creating my own super global variables

From: Date: Mon, 24 Feb 2003 16:54:28 +0000
Subject: Re: Creating my own super global variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136945@lists.php.net to get a copy of this message
On Tuesday 25 February 2003 00:07, Siddharth Hegde wrote: > Is there any way I can creat my very own super global variables? All variables defined in the global scope can be accessed via $GLOBALS. So: $my_very_own_variable = 'whatnot'; can be accessed anywhere as: $GLOBALS['my_very_own_variable'] For consistency you might want to always refer to it as $GLOBALS['my_very_own_variable'], so: $GLOBALS['my_very_own_variable'] = 'whatnot'; -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Reisner's Rule of Conceptual Inertia: If you think big enough, you'll never have to do it. */

« previous php.general (#136945) next »