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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]