mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-20 09:10:48 +00:00
PHP Globals
This commit is contained in:
parent
8cc75917df
commit
5429e1d64a
@ -1,5 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Global variable
|
||||||
|
*/
|
||||||
|
$_SERVER; // SERVER variables
|
||||||
|
$_GET; // Query params
|
||||||
|
$_POST; // Post fields
|
||||||
|
$_REQUEST; // GET and POST together
|
||||||
|
$GLOBALS; // Collection of global variables
|
||||||
|
$_SESSION; // Browser session
|
||||||
|
$_FILES; // Array of files that are sent in request
|
||||||
|
$_COOKIE; // Array of cookies sent in request
|
||||||
|
$_ENV; // php.ini options
|
||||||
|
$argv; // Array of terminal arguments (filename included)
|
||||||
|
$argc; // Number of arguments passed into terminal
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class
|
* Class
|
||||||
* http://php.net/manual/en/language.oop5.basic.php
|
* http://php.net/manual/en/language.oop5.basic.php
|
||||||
|
Loading…
Reference in New Issue
Block a user