Re: http://bugs.php.net/bugs.php?id=7553
| From: | Sterling Hughes | Date: | Sat, 09 Dec 2000 01:02:42 +0000 |
| Subject: | Re: http://bugs.php.net/bugs.php?id=7553 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40623@lists.php.net to get a copy of this message | ||
>
>
> What I'm asking is: is it viable to extend Zend / PHP 4 to
> recognize 'global', 'local', and 'parent' symbol tables?
> That way, there could be $GLOBALS, $LOCALS, and $PARENTS,
> and I could easily write my own extract(). Of course, MUCH
> more would become possible if this was reality, like easy
> checking of the state of all local variables within
> a function with print_r( $LOCALS ), etc.
>
>
take a look at the get_defined_vars() function...
-Sterling