How to retrieve all values at a particular nth index in a multi dimensional associative array?

In reply to Anudeep J:

Hi Anudeep,

This approach will loop through unnecessary values of j right? Anyway to overcome it.

As you mentioned, some of the elements may not exists. I am looking for a way to constrain values of i and k to provide only valid indices. Any suggestions on how this can be achieved, are welcome.

Thank you

Regards,
KVS