PHP Super global variable array (SuperGlobalArray), also known as PHP pre-defined array, is built in by the PHP engine and does not need to be redefined by developers. When the PHP script runs, PHP automatically puts some data in the Super Global array. Php Super global variable list $ _ 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 current cookie ID of the website... PHP Super Global variable Array (Super Global Array), also known as PHP pre-defined Array, is built in by the PHP engine and does not need to be redefined by developers. When the PHP script runs, PHP automatically puts some data in the Super Global array.
Php Super global variable list
$ _ GET [] GET the variable array submitted using the GET method
$ _ POST [] get the variable array submitted using the POST method
$ _ COOKIE [] obtain and set the Cookie ID of the current website
$ _ SESSION [] gets the unique identifier of the current user's access, represented in arrays, 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 during file upload, in array format
$ _ REQUEST [] contains all the requests submitted by the current script, all the actions of $ _ GET, $ _ POST, $ _ COOKIE, and $ _ SESSION.
$ GLOBALS [] contains references to all Super global variables in the script being executed
PHP System constant
_ FILE _ absolute path and FILE name of the current PHP script
_ LINE _ stores the row number of the constant
_ FUNCTION _ name of the FUNCTION where the constant is stored
_ CLASS _ stores the name of the CLASS where the constant is located.
PHP_VERSION stores the current PHP version, which can also be obtained through the PHPVERSION () function.
PHP_ OS stores the operating system of the current server
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service