You can get around it with the $GLOBALS variable of a superglobal variable. Instead of writing
function & getSuperGlobal($name) { return ${"_$name"}; }
You can write
function & getSuperGlobal($name) { return $GLOBALS["_$name"]; }
and the results will be equal.
Kubo2
source share