Predefined variables in PHP

by Ramya 2008-05-07 10:08:40

Predefined Variables In PHP:

* SUPERGLOBALS
- Superglobals are built-in variables that are always available in all scopes.

* $GLOBALS
- References all variables available in global scope

* $_SERVER
- An array containing information such as headers,paths and script locations.

* $_GET
- An array of variable names and values can be sent using this method and it has limits on the amount of information to send (max. 100 characters).

* $_POST
- An array of variable names and values can be sent by the HTTP POST method and has no limits on the amount of information to send.

* $_COOKIE
- HTTP Cookies

* $_FILES
- An associative array of items uploaded to the current script via the HTTP POST method.

* $_REQUEST
- HTTP Request variables.

* $_SESSION
- An associative array containing session variables available to the current script.

* $_ENV
- Environment variables.

* $php_errormsg
- The previous error message.

Tagged in:

1324
like
0
dislike
0
mail
flag

You must LOGIN to add comments