Super Globals Flashcards
1
Q
Say you have a variable in the global scope, how can you access it within another scope?
A
$GLOBALS[$var];
2
Q
How can you access a variable through a post request and how about a get request?
A
$_POST[$var];
$_GET[$var];