PHP Superglobals

I’ve used PHP for so long but don’t really understand some of the basics. Starting today I’ll be studying them one by one.
Superglobals in PHP:

  • $GLOBALS array of all global variables
  • $_SERVER array of server environment variables
  • $_GET array of variables passed to the script via get
  • $_POST array of variables passed to the script via post
  • $_COOKIE array of cookie variables
  • $_FILES array of variables related to file uploads
  • $_ENV array of environment variables
  • $_REQUEST array of all user-input variables (including $_GET $_POST $_COOKIE but not $_FILES) $_SESSION array of session variables