Home  >  Article  >  Backend Development  >  PHP super global variable list

PHP super global variable list

巴扎黑
巴扎黑Original
2016-11-30 09:21:551034browse

Name Function Description

$_GET[] Get the variable array submitted by the GET method

$_POST[] Get the variable array submitted by the POST method

$_COOKIE[] Get and set the cookie identifier of the current website

$_SESSION [] Obtain the unique identification of the current user access, in the form of an array, such as SESSIONID and custom SESSION data

$_ENV[] Current PHP environment variable array

$_SERVER[] Current PHP server variable array

$_FILES[ ] Parameter values ​​submitted to the current script when uploading files, expressed in the form of an array

$_REQUEST[] Contains all requests submitted by the current script, including all actions of $_GET, $_POST, $_COOKIE, $_SESSION

$GLOBALS [] This super variable array contains references to all super global variables in the executing script


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