Re: Is there a way to get a variable name as a string?
| From: | Burhan Khalid | Date: | Tue, 19 Jul 2005 07:23:48 +0000 |
| Subject: | Re: Is there a way to get a variable name as a string? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218942@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
Daevid Vincent wrote:Well.... ob_start(); echo '$var'; $contents = ob_get_contents(); ob_end_clean(); echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);Is there a way to get the name of a variable as a string? For example...Nope, not possible.