Arrays

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