Home  >  Article  >  Backend Development  >  What are the super global variables in php

What are the super global variables in php

WBOY
WBOYOriginal
2016-07-25 08:44:061147browse

The super global variables in php are:

$GLOBALS, an array of all global variables (just like the global keyword, this will allow access to global variables inside a function - for example, in the form $GLOBALS['myvariable'].)
$_SERVER, array of server environment variables
$_GET, the array of variables passed to the script via the GET method
$_POST, the array of variables passed to this script via the POST method
$_COOKIE, cookie variable array
$_FILES, array of variables related to file upload
$_ENV, array of environment variables
$_REQUEST, an array of variables entered by all users, including the input content contained in $_GET, $_POST and $_COOKIE
$_SESSION, session variable array object.

Global variables, what are they, php


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn