PHP has no real global variables. "Superglobals" are also wrong. $_POST and $_GET never present in the hash tables of a local variable. They exist as aliases that PHP sees only for regular accesses. The access method of a variable variable always looks only at the current local hash table.
global $$string; // $$string = & $GLOBALS[$string];
This is a great trick for creating a link to superglobal in a local hash table. That is why, after this statement, you can use variable variables to access "superglobals."
mario source share