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