Re: globals in functions
| From: | phplists at woodenpickle dot com | Date: | Sat, 13 Apr 2002 17:46:22 +0000 |
| Subject: | Re: globals in functions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92890@lists.php.net to get a copy of this message | ||
function someCommand()
{
global $var1, $var2, $var3;
stuff();
}
I think you could also use define(); maybe..
Later,
Bob Weaver
"Paul Roberts" <roberts_paul@bigfoot.com> wrote in message
news:00f301c1e311$fa421af0$dde5883e@laptop1...
Is there a quick way to set all variables as global so that they are
avalible to a function, i'm doing an eval inside, so i need all the
submitted variables to be avalible, or do i have to decalre them
individualy.
Paul Roberts
roberts_paul@bigfoot.com
++++++++++++++++++++++++