Associative array

In reply to pawan:

Define “better”. What’s wrong with what you wrote?