Super Global Varibles in Php


super global varibles are used predefined in built special varibles used to get the value from any scope


1. local scope

2. global scope

3. cleint scope

4. server side scope


There are Two types of super global variable

1. mangled variable

2. unmangled variable


1. mangled variable :_ will be used prefix example


$_POST

$_GET

$_SERVER

$_REQUEST


2. unmangled varible :they donot start from _ as prefix


$GLOBALS


These superglobal variables are:

 

$GLOBALS

$_SERVER

$_GET

$_POST

$_FILES

$_COOKIE

$_SESSION

$_REQUEST

$_ENV


Superglobal = unmangled + mangled


There Context are super means they can be session access any where Post-Mortum of Super Global Varibles


$GLOBALS:


it convert any local varible to super global variable and this varible is formed such that it becomes unmangled varible




Super Global Varibles in Php