Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to add (or emulate) a new superglobal
- P Pulkkinen
February 7, 2007, 9:48 am
rate this thread
Lets say I would like to have a new superglobal, in addition to
automatically made get, post, cookie and session.
I mean, I would (theoretically) want to AVOID doing
and just be able to use $config in functions and classes.
Not that it would be the nicest practise though. But let's say for the sake
of fun or doing it.
Is there a way? Of course you could reset, set and reset again some session
variable, but that would not be very nice way.