1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-22 01:58:54 +00:00
This commit is contained in:
kobus 2018-04-20 09:59:53 +02:00
parent 44e9641f78
commit 69684835b3

View File

@ -55,14 +55,14 @@ switch($arr) {
}
/**
* Global variable
* Global variables
* http://php.net/manual/en/language.variables.superglobals.php
*/
$_SERVER; // SERVER variables
$_GET; // Query params
$_POST; // Post fields
$_REQUEST; // GET and POST together
$GLOBALS; // Collection of global variables
$GLOBALS; // Array of global variables
$_SESSION; // Browser session
$_FILES; // Array of files that are sent in request
$_COOKIE; // Array of cookies sent in request