How to find all indices of an associative array

In reply to mseyunni:
What does “doesn’t seem to work” mean?

Doesn’t compile - what is the error?

Doesn’t give the the result’s you are expecting. What did you expect? and what did you get?