PHP Superglobals - PHP Global Variables - Superglobals in PHP



  • Superglobals — Built-in variables that are always available in all scopes
  • Several predefined variables in PHP are "superglobals", which means they are available in all scopes throughout a script. There is no need to do global $variable; to access them within functions or methods.
  • These superglobal variables are:
    • $GLOBALS
    • $_SERVER
    • $_REQUEST
    • $_POST
    • $_GET
    • $_FILES
    • $_ENV
    • $_COOKIE
    • $_SESSION
php-superglobals

Related Searches to PHP Superglobals - PHP Global Variables - Superglobals in PHP