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';
        $$ArrayName = array(5,6,7,8);


        echo $ArrayName;        ==> Thing
        echo $$ArrayName;       ==> Array
        echo ${$ArrayName}[0];  ==> 5


for more info.


At 1:03 PM -0700 7/9/01, Dallas K. wrote:
>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?

+------ Factoid: Of the 100 largest economies in the world, 51 are ------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
|         |
+--- corporations ------ ---+

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to