470,848 Members | 1,189 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

What is superglobal?

Can anyone give a definition of it?
Jun 2 '08 #1
3 2764
Phper schreef:
Can anyone give a definition of it?
Hi,

[from php.net]
http://nl3.php.net/manual/en/languag...perglobals.php

Superglobals — Superglobals are built-in variables that are always
available in all scopes
Description

Several predefined variables in PHP are "superglobals", which means they
are available in all scopes throughout a script. There is no need to do
global $variable; to access them within functions or methods.

These superglobal variables are:

* $GLOBALS
* $_SERVER
* $_GET
* $_POST
* $_FILES
* $_COOKIE
* $_SESSION
* $_REQUEST
* $_ENV
Regards,
Erwin Moller

PS: A tip: go to www.php.net, and use the search form.
Jun 2 '08 #2
On 15 May, 15:19, Erwin Moller
<Si******************************************@spam yourself.comwrote:
Phper schreef:
Can anyone give a definition of it?

Hi,

[from php.net]http://nl3.php.net/manual/en/language.variables.superglobals..php

Superglobals — Superglobals are built-in variables that are always
available in all scopes
Description

Several predefined variables in PHP are "superglobals", which means they
are available in all scopes throughout a script. There is no need to do
global $variable; to access them within functions or methods.

These superglobal variables are:

* $GLOBALS
* $_SERVER
* $_GET
* $_POST
* $_FILES
* $_COOKIE
* $_SESSION
* $_REQUEST
* $_ENV

Regards,
Erwin Moller

PS: A tip: go towww.php.net, and use the search form.
I'm surprised you're still answering this guy Erwin, as his profile
still claims that he's you.
Jun 2 '08 #3
Captain Paralytic schreef:
On 15 May, 15:19, Erwin Moller
<Si******************************************@spam yourself.comwrote:
>Phper schreef:
>>Can anyone give a definition of it?
Hi,

[from php.net]http://nl3.php.net/manual/en/language.variables.superglobals.php

>Superglobals — Superglobals are built-in variables that are always
available in all scopes
Description

Several predefined variables in PHP are "superglobals", which means they
are available in all scopes throughout a script. There is no need to do
global $variable; to access them within functions or methods.

These superglobal variables are:

* $GLOBALS
* $_SERVER
* $_GET
* $_POST
* $_FILES
* $_COOKIE
* $_SESSION
* $_REQUEST
* $_ENV


Regards,
Erwin Moller

PS: A tip: go towww.php.net, and use the search form.

I'm surprised you're still answering this guy Erwin, as his profile
still claims that he's you.
Aaargh! Damn.
I was so busy preparing my first XEN install, I didn't pay enough
attention. Darn, I felt for the noob.
My bad. :-(

Thanks for the quick correction.

Regards,
Erwin Moller
Jun 2 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rainer Erismann | last post: by
1 post views Thread by pkp | last post: by
9 posts views Thread by Super Mango | last post: by
5 posts views Thread by splodge | last post: by
3 posts views Thread by P Pulkkinen | last post: by
26 posts views Thread by K.J.Williams | last post: by
2 posts views Thread by pinoyclan | last post: by
3 posts views Thread by Michaelp | last post: by
13 posts views Thread by Fro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.