php-general | 2003022
Date: 02/27/03
- Next message: Diana Castillo: "[PHP] post xml"
- Previous message: 1LT John W. Holmes: "Re: [PHP] Reading files"
- In reply to: Sunfire: "[PHP] classes and functions in include files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> wrote in message
news:003201c2de64$f7d62e60$2304a40c <email protected>
> 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
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Diana Castillo: "[PHP] post xml"
- Previous message: 1LT John W. Holmes: "Re: [PHP] Reading files"
- In reply to: Sunfire: "[PHP] classes and functions in include files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

