Super global variable array for php

Source: Internet
Author: User
Super global variable array for php
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.

Introduction: 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$ _ 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 $ _ SESSION [] gets the unique identifier of the current user's access, in array format, for example, sessionid and Custom session Data $ _ ENV [] Current php environment variable array $ _ SERVER [] Current php SERVER variable array $ _ FILES [] submitted to the current script when uploading FILES parameter value, in the form of an array, $ _ REQUEST [] contains all requests submitted by the current script, $ _ GET, $ _ POST, $ _ COOKIE, and $ _ SESSION all actions $ GLOBALS [] include reference content of all Super global variables in the script being executed

Php System constant_ FILE _ absolute path of the current PHP program script and FILE name _ LINE _ store the row number of the constant _ FUNCTION _ store the FUNCTION name of the constant __ CLASS _ stores the name of the CLASS where the constant is located. _ METHOD _ stores the name of the METHOD of the CLASS where the constant is located. PHP_VERSION stores the current PHP version number, you can also use the PHPVERSION () function. PHP_ OS stores the operating system of 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.