Can anyone give a definition of it?
What is superglobal?
Collapse
This topic is closed.
X
X
-
PhperTags: None -
Erwin Moller
Re: What is superglobal?
Phper schreef:Hi,Can anyone give a definition of it?
[from php.net]
Regards,Superglobals — Superglobals are built-in variables that are always
available in all scopes
Description
Several predefined variables in PHP are "supergloba ls", 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
Erwin Moller
PS: A tip: go to www.php.net, and use the search form.
-
Captain Paralytic
Re: What is superglobal?
On 15 May, 15:19, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c omwrote:I'm surprised you're still answering this guy Erwin, as his profilePhper schreef:
>>Can anyone give a definition of it?
Hi,
>
[from php.net]http://nl3.php.net/manual/en/language.variab les.superglobal s..php
>
>Superglobals — Superglobals are built-in variables that are always
available in all scopes
Description
>
Several predefined variables in PHP are "supergloba ls", 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.
still claims that he's you.
Comment
-
Erwin Moller
Re: What is superglobal?
Captain Paralytic schreef:Aaargh! Damn.On 15 May, 15:19, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c omwrote:>>Phper schreef:
>>>Hi,>>Can anyone give a definition of it?
>>
>[from php.net]http://nl3.php.net/manual/en/language.variab les.superglobal s.php
>>
>>>>Superglobals — Superglobals are built-in variables that are always
>available in all scopes
>Description
>>
>Several predefined variables in PHP are "supergloba ls", 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.
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
Comment
Comment