PHP Super global variable array summary _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Tags php server
PHP Super global variable array summary. 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 a website 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 requests submitted by the current script,

All 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.

_ METHOD _ name of the METHOD that stores the class of the constant

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

Variables $ _ GET [] GET the variable array submitted by GET method $ _ POST [] GET the variable array submitted by POST method $ _ COOKIE [] GET and set the Cookie ID of the current website...

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.