Re: env vars in included _functions_?
| From: | (Sean Straw / PSE) | Date: | Thu, 30 Nov 2000 16:38:13 +0000 |
| Subject: | Re: env vars in included _functions_? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28072@lists.php.net to get a copy of this message | ||
At 20:55 2000-11-30 -0500, Jason Lavigne wrote:
Function do not carry over variables, you would have to tell the function that you wanted to use the variable(s) by using GLOBAL, or you can pass the variable(s) to the function directly.[snip] 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. Your pointer fixed my problem. Thanks. --- Please DO NOT carbon me on list replies. I'll get my copy from the list. Sean B. Straw / Professional Software Engineering Post Box 2395 / San Rafael, CA 94912-2395