Summary of PHP super global variables array
- 2020-05-24 05:19:00
- OfStack
php list of super global variables
$_GET[] gets the array of variables submitted in the GET method
$_POST[] gets the array of variables submitted in the POST method
$_COOKIE[] gets and sets the Cookie identity for the current website
$_SESSION[] gets the 1-only id currently accessed by the user in an array, such as sessionid and custom session data
$_ENV[] current php environment variable array
$_SERVER[] current php server variable array
$_FILES[] the parameter values submitted to the current script when the file is uploaded, as an array
$_REQUEST[] contains all the requests submitted by the current script,
All actions of $_GET, $_POST, $_COOKIE, $_SESSION
$GLOBALS[] contains references to all the super global variables that are executing the script
PHP system constant
S the absolute path and file name of the current PHP program script
S 50en__ store the line number of this constant
S 53en__ the name of the function in which the constant is stored
S 56en__ the name of the class in which the constant is stored
S 59en__ the name of the method on which the constant is stored
PHP_VERSION stores the current version number of PHP, which can also be obtained through the PHPVERSION() function.
PHP_OS stores the operating system of the current server
$_GET[] gets the array of variables submitted in the GET method
$_POST[] gets the array of variables submitted in the POST method
$_COOKIE[] gets and sets the Cookie identity for the current website
$_SESSION[] gets the 1-only id currently accessed by the user in an array, such as sessionid and custom session data
$_ENV[] current php environment variable array
$_SERVER[] current php server variable array
$_FILES[] the parameter values submitted to the current script when the file is uploaded, as an array
$_REQUEST[] contains all the requests submitted by the current script,
All actions of $_GET, $_POST, $_COOKIE, $_SESSION
$GLOBALS[] contains references to all the super global variables that are executing the script
PHP system constant
S the absolute path and file name of the current PHP program script
S 50en__ store the line number of this constant
S 53en__ the name of the function in which the constant is stored
S 56en__ the name of the class in which the constant is stored
S 59en__ the name of the method on which the constant is stored
PHP_VERSION stores the current version number of PHP, which can also be obtained through the PHPVERSION() function.
PHP_OS stores the operating system of the current server