Re: Scope of include
| From: | tedd | Date: | Thu, 18 Jan 2007 15:29:26 +0000 |
| Subject: | Re: Scope of include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247335@lists.php.net to get a copy of this message | ||
At 9:49 PM -0800 1/17/07, jekillen wrote:
Hello php list: If I include a php script inside a php function definition and then call the function in another script. What is the scope of variables in the included script? Are they local to the function that calls include with the file name? Thanks in advance; I'm not sure where to look for this answer; JKJK: Whenever I have a question about an include, I just cut/paste (i.e., replace) the include statement with the include script. That way I know exactly what it does. hth's tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com