PAWDD E-Training
17May/100

Calling all PHP “SUPERGLOBALS”

In PHP there are a set of variables called "SuperGlobals". These variables are of a special type and they carry along with them their own set of rules that define when and where they are available, called their scope.

The only difference between SuperGlobals and normal variables is; they can be seen everywhere in your scripts.

A list of these are as follows :

$GLOBALS
Holds an array of all global variables.
$_SERVER
Holds an array of all server enviroment variables.
$_GET
Holds an array of all the varialbes passed to the script through the GET method.
$_POST
Holds an array of all the varialbes passed to the script through the POST method.
$_REQUEST
Holds an array of all the varialbes passed to the script through the GET and POST methods, otherwise called user input variables.
$_COOKIE
Holds an array of all the cookie variables.
$SESSION
Holds an array of all the session variables.
$_FILES
Holds an array of all the variables associated to file uploads.
$_ENV
Holds an array of all the enviroment variables.

 

Dashboard

Training Categories

Shaded Pixel LLC

Monthly Archive

Page Links

PAWDD E-Training