# How to return name of an array not it's contents?

**URL:** https://forum.kirupa.com/t/how-to-return-name-of-an-array-not-its-contents/216050
**Category:** flash
**Created:** [February 13, 2007, 10:12am UTC](https://forum.kirupa.com/t/how-to-return-name-of-an-array-not-its-contents/216050 "2007-02-13T10:12:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)
#### Post date: [February 13, 2007, 10:12am UTC](https://forum.kirupa.com/t/how-to-return-name-of-an-array-not-its-contents/216050/1 "2007-02-13T10:12:45Z")

</div>

Hey there, thanks for checking this. I have an array that holds some other arrays and I want to return just the name of the arrays that it holds, not their contents. In this example I want to trace the string “myDays\_ar” but can only get the contents.  
[AS]  
var myDays\_ar:Array = [“Sat”, “Sun”, “Wed”];  
var myMonths\_ar:Array = [“January”, “July”];  
var my\_ar:Array = [myDays\_ar, myMonths\_ar];  
trace(my\_ar[0]);  
//RETURNS: Sat,Sun,Wed  
[/AS]  
I have tried  
[AS]  
trace(my\_ar[0].\_name);  
[/AS]  
and  
[AS]  
trace(my\_ar[0].\_name.toString());  
[/AS]  
but can’t get what I want!  
If anyone could help I would be really grateful:)  
Thanks!  
Schm
