Re: System variables in functions
| From: | Troels Arvin | Date: | Tue, 25 Jul 2000 05:47:12 +0000 |
| Subject: | Re: System variables in functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7991@lists.php.net to get a copy of this message | ||
David VanHorn <dvanhorn@cedar.net> wrote:
> Are $REMOTE_ADDR and the other system variables available within a function?
> It appears that they are not
Correct.
See http://www.php.net/manual/language.variables.scope.php
> and I don't understand why that would be..
Because it would clutter the name-space. It's nice to be able to work
with private, isolated variables in functions.
--
Greetings from Troels Arvin, Copenhagen, Denmark