What does $GLOBALS mean?
- An array of global variables
- A constant representing the Earth
- A global function
- A reserved keyword
In PHP, $GLOBALS is an array that holds references to all variables that are currently defined in the global scope. It allows access to global variables from anywhere in the PHP script. Learn more: http://php.net/manual/en/reserved.variables.globals.php
Loading...
Related Quiz
- To access data from the $_SERVER superglobal in PHP, you can use $_SERVER['element'] where 'element' is the name of the ______ you wish to access.
- What are the differences between a class constant and a class variable in PHP?
- Is it possible to destroy a cookie?
- Constants in PHP can be defined and accessed anywhere in the script without regard to ______ rules.
- In PHP, you can create a file using the fopen() function with 'w' as the mode, which will create the file if it doesn't exist and open it for ______.