# Arrays

**URL:** <https://forum.kirupa.com/t/arrays/108051>\
**Category:** Uncategorized\
**Created:** [April 21, 2004, 12:28pm UTC](https://forum.kirupa.com/t/arrays/108051 "2004-04-21T12:28:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyanescent](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cyanescent](https://forum.kirupa.com/u/cyanescent)\
**Post date:** [April 21, 2004, 12:28pm UTC](https://forum.kirupa.com/t/arrays/108051/1 "2004-04-21T12:28:34Z")

</div>

hey, I hope some wizard has tried this before :

is there a way of retrieving the key/index of an array? – for example if you define an array like this

myArray[“this is a key”] = “blablabla”;

I need a function to return “this is a key”. toString() will only return the values in an array…  
many thx

-n
