custom superglobals?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is it possible to define my own superglobal variable or array?
Rather than doing `global $cfg;` in all of my functions, I'd like to just set $cfg as a superglobal in one place and forget about it.


Yes, I'm aware I could use $GLOBALS['cfg'], but I'd much prefer it worked like $_GET etc.

---
Justin French, Indent.com.au
justin.french@xxxxxxxxxxxxx
Web Application Development & Graphic Design

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux