note 21324 modified in language.variables.external by sander
| From: | sander@php.net | Date: | Wed, 08 May 2002 15:23:20 +0000 |
| Subject: | note 21324 modified in language.variables.external by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30335@lists.php.net to get a copy of this message | ||
[Ed. note: $HTTP_*_VARS are NO superglobals, only $_SERVER, $_POST, $_GET, $_REQUEST, $_SESSION,
$_COOKIE are superglobals. Therefor you DO need global on the $HTTP_*_VARS, but not on the real
superglobals. ]
Note: When using the magic superglobals (i.e. $HTTP_SERVER_VARS) inside a function, you still have
to declare them as "global" inside the function source.
This is counterintuitive -- you'd think that the built-in variables would automatically have
universal scope -- but necessary.
--was--
Note: When using the magic superglobals (i.e. $HTTP_SERVER_VARS) inside a function, you still have
to declare them as "global" inside the function source.
This is counterintuitive -- you'd think that the built-in variables would automatically have
universal scope -- but necessary.
http://www.php.net/manual/en/language.variables.external.php