RE: [PHP] retriving a variable name
| From: | Smith, Benjamin | Date: | Tue, 22 Oct 2002 04:30:14 +0000 |
| Subject: | RE: [PHP] retriving a variable name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120854@lists.php.net to get a copy of this message | ||
Is there any reason you want to go to that level of abstraction? What are you trying to do?
-----Original Message-----
From: Matt Giddings [mailto:cen10761@centurytel.net]
Sent: Tuesday, 22 October 2002 2:07 PM
To: php-general@lists.php.net
Subject: [PHP] retriving a variable name
Is there a way to retrieve the variable name from within php?
Example:
$myvar = 'test';
I want to be able to pass '$myvar' to a function and retrieve both the
name of the variable 'myvar' and the value of the variable 'test' in
this case.
Thanks,
Matt
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.399 / Virus Database: 226 - Release Date: 10/9/2002
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php