Re: finding a variables name
| From: | Jason Brooke | Date: | Tue, 15 May 2001 03:59:23 +0000 |
| Subject: | Re: finding a variables name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52804@lists.php.net to get a copy of this message | ||
foreach($GLOBALS as $key=>$val)
echo "$key=$val<br>\n";
see the list() and each() functions in the manual for php3
----- Original Message -----
From: "Joseph Blythe" <joe.blythe@binarylogic.com.au>
To: <php-general@lists.php.net>
Sent: Tuesday, May 15, 2001 1:48 PM
Subject: [PHP] finding a variables name
> Hey ppl,
>
> How does one find the name of a variable, not what the variable contains?
>
> This is not the same as variable variables.
>
> I know this seems a bit pointless but I have come across a situation
> where I really need to be able to do this.
>
> Hope someone can help,
>
> Thanks,
>
> Joseph