PHP super global variable array

Source: Internet
Author: User

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 __Current PHPProgramAbsolute script path and file name

_ Line __The row number that stores the constant.

_ Function __Name of the function that stores the constant

_ Class __Name of the class where the constant is stored

__Method_ Name of the method that stores the class of the constant

Php_versionStore the current PHP version number, which can also be obtained through the phpversion () function.

Php_ OSOperating system for storing the current server

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.