Re: env vars in included _functions_?
| From: | Sebastian Delmont | Date: | Thu, 30 Nov 2000 16:56:57 +0000 |
| Subject: | Re: env vars in included _functions_? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28077@lists.php.net to get a copy of this message | ||
> FTR, passing the variables had occurred to be, but it was way too sloppy.
>
> I'd have thought that environment-defined variables would have been
> considered global to start with.
Global variables are never considered global inside functions unless you
declare them so...
The only global variable you don't have to declare is the $GLOBALS array.
Greetings,
Sebastian