Global scope and functions
| From: | D | Date: | Tue, 14 Dec 1999 01:00:19 +0000 |
| Subject: | Global scope and functions | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7885@lists.php.net to get a copy of this message | ||
Hey,
I am making a function wrapper for include() called myinclude(). The
problem I have run into is that since I am calling include() from
myinclude() the scope of the variables I can see by default is only what
myinclude() can see, so I cant see the global scope without explicitly
global'ing each one I want to use. Is there any way to make a function
see all global variables as if it were outside of the function? But of
course variables declared local will override (just like in C).
Hopefully there is a way to do this.
Thanks.
-d
--
(void *)0