How to assign and create associative array with multiple keys

In reply to rangasmile:

thanks that works. do you have any better suggestions for a situation like this any other usage model that is more efficient than above? regardless i think this is very effective solution but i was just wandering if there is something i am missing and can explore.