Re: get_defined_vars in all scopes?

From: Date: Mon, 28 Feb 2005 00:54:13 +0000
Subject: Re: get_defined_vars in all scopes?
Groups: php.general 
Request: Send a blank email to php-general+get-209559@lists.php.net to get a copy of this message
> I'm using this at the end of a script > > echo '<pre>'; var_dump(get_defined_vars()); echo '</pre>'; > > but it only returns what get_defined_vars gives, which is what's > available in the current scope. Is there any way to get also the vars > used in functions that weren't globalized? No, not unless you call this in the functions, also. The variables don't exist after the function is completed. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html

« previous php.general (#209559) next »