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.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to