Re: classes and functions in include files
| From: | David Eisenhart | Date: | Thu, 27 Feb 2003 15:07:58 +0000 |
| Subject: | Re: classes and functions in include files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137396@lists.php.net to get a copy of this message | ||
yes (as has been said); the code in the included file adopts 'the scope in
the place at the point of the include statement'. Hence if you were to put
the the include statement in a function the vars in the included file would
have the scope of that function; included outside a function they'll have
global scope
David Eisenhart
"Sunfire" <rusty_81@msn.com> wrote in message
news:003201c2de64$f7d62e60$2304a40c@andy...
> just a fast question here.. and the lotic probably isnt to bright on my
part
> and i think i know the answer to this question too but just to make
sure...
> if you can include variables in an include file and use them outside that
> file (in the file that includes that file that is) then can you do the
same
> with classes and functions
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
>