I need to echo the NAME of an array to the browser. when I try this all I get is
Array. when I try to : echo $$array_name; I get nothing.
How can I get the NAME of an array to the browser?
Thanks.
you mean output the name of the variable??
what are you trying to do with that?
-Original Message-
From: Dallas K. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 4:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Name of an array???
Importance: High
I need to echo the NAME
Not quite sure what you're getting at here. As you discovered, if you have
$Thing = array(5,6,7,8);
and you 'echo $Thing;' you get 'Array.' However, in this case, you
know the variable name already - $Thing!
Are you thinking more along these lines:
$ArrayName = 'Thing';
3 matches
Mail list logo