1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-19 16:53:15 +00:00

PHP Globals

This commit is contained in:
kobus 2018-04-20 09:32:20 +02:00
parent 8cc75917df
commit 5429e1d64a

View File

@ -1,5 +1,20 @@
<?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
* http://php.net/manual/en/language.oop5.basic.php