Re: get_defined_vars in all scopes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux