I'm sorry - I missed your reply.
Actually, the error message explains the problem:
On Tuesday, 21 August 2018 19:19:17 UTC+1, Sushma wrote: it is true that "associative arrays that specify a wildcard index type cannot be used in a foreach loop".
So, if you declare the associative array with a * (wildcard), like you did:
then you can't use foreach. If you want to use foreach then you have to be a bit more specific about the index type, eg:
I hope this helps.