Re: Variable name?
| From: | Hartmut Holzgraefe | Date: | Sat, 02 Mar 2002 10:28:49 +0000 |
| Subject: | Re: Variable name? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80592@lists.php.net to get a copy of this message | ||
Walter A. Boring IV wrote:
Howdy, I was thinking about tweaking the var_dump/print_r functions to provide the name of the variable being dumped. Is there a way to look that up? from the active_symbol_table-- ?<?php $a = "something"; $b = &$a; // $b refers to the same zval as $a print_r($b); // function gets only the zval reference
// how should it be able to find out if you
// passed $a or $b ?
?>
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de
+49-711-99091-77
Wir stellen für Sie aus auf der CeBIT 2002 und freuen uns
in Halle 6 auf Ihren Besuch am Stand H 18