PHP Superglobals

Superglobals are built-in global arrays in PHP that are always accessible, regardless of scope. They are used to access various types of data, including form submissions, session data, and server information.

Common Superglobals

  • $GLOBALS
  • $_SERVER
  • $_REQUEST
  • $_POST
  • $_GET
  • $_SESSION
  • $_COOKIE
  • $_FILES