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
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *