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; }
548k questions
547k answers
4 comments
86.3k users