is there a way to create my own custom superglobal variables like $_POST and $_GET?
Static class variables can be referenced globally, e.g.:
class myGlobals { static $myVariable; } function a() { print myGlobals::$myVariable; }
2.1m questions
2.1m answers
60 comments
57.0k users