PHP - Predefined Globals

php

What are the predefined variables?

  1. Superglobals — Superglobals are built-in variables that are always available in all scopes
  2. $GLOBALS — References all variables available in global scope
  3. $_SERVER — Server and execution environment information
  4. $_GET — HTTP GET variables
  5. $_POST — HTTP POST variables
  6. $_FILES — HTTP File Upload variables
  7. $_REQUEST — HTTP Request variables
  8. $_SESSION — Session variables
  9. $_ENV — Environment variables
  10. $_COOKIE — HTTP Cookies
  11. $php_errormsg — The previous error message
  12. $HTTP_RAW_POST_DATA — Raw POST data
  13. $http_response_header — HTTP response headers
  14. $argc — The number of arguments passed to script
  15. $argv — Array of arguments passed to script
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License