Home »
MCQs »
PHP MCQs
What is the name of an array that stores all global variables in PHP?
22. What is the name of an array that stores all global variables in PHP?
- $GLOBAL[]
- $global[]
- $GLOBALS[]
- $PHP_GLOBALS[]
Answer: C) $GLOBALS[]
Explanation:
PHP has an array named $GLOBALS[] that stores all global variables in PHP.