Today I met such a terrible situation.
It seems this bug is related to PHP
.
I'm trying to access to $_SERVER
or another super global variables but from string name.
This version of implementation is working.
var_dump(${"_SERVER"}); // working
But when trying to do this with variable then receiving notice that variable not found.
$var_name = "_SERVER";
var_dump(${$var_name}); // Notice</b>: Undefined variable: _SERVER in...
And this will happen only with a global variable.
What is going on there? Can someone explain this situation.