SuperGlobal variables in PHP

SuperGlobal variables in PHP are the variables that always available regardless of the context.


Example of SuperGlobal variables are:

$_REQUEST it holds data submitted by HTML form

$_GET it holds data submitted by HTML form via GET method

$_POST it holds data submitted by HTML form via POST method

$_FILES it holds data about files submitted via POST method

$_SERVER this SuperGlobal variable contains information about server

$_COOKIE this SuperGlobal variable is used to retrieve cookie information via its name.

$_SESSIOON this SuperGlobal variable is used to set and retrieve session value that is stored in the server.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator