This may not be possible, but I was looking for a quicker way to access global variables (anywhere in any script during a session). Basically, I'm currently instantiating a database object into $GLOBALS at runtime:
$GLOBALS['db'] = new database;
I would really prefer is there was a shorter way to refer to that object, like if something like this were possible:
define("MYDB", $GLOBALS['db']);
But of course, constants can't be objects, just simple stuff like strings.
If this possible? Otherwise, I'll go ahead and type out $GLOBALS['db'] everywhere I use it.