Re: $GLOBALS example script on php.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It doesn't though, it creates a copy of the $_GLOBALS super global array,
removes entries that will have been set by the system (i.e. it leaves
user-defined variables) and then returns the ones that are left, so in that,
the user note is perfectly correct.

What has me puzzled is how unsetting LEAVES user defined variables ? Why
would that happen ?

The array in the function lists the common server-defined variables
> (HTTP_VARS, etc), which it unsets from the local copy of the super global
> array ($globals). Basically, it loops through the un-named array, and unsets
> that index from $globals.
>

Thank you,
Ashim

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux