This is probably easy, but I have searched and cannot find the method to get the value of an index of an associative array element. In other words if I have an array:
myarray['Name1']=2;
myarray['Name2']=4;
myarray['Name3']=6;
How do I then get the 'Name1' later? I am using a loop to populate the array element names and values and need to be able to get the names later (in another function).
Thanks!,
LJ Wilson
My personal saying - Just remember, it can always get worse, and usually will.
myarray['Name1']=2;
myarray['Name2']=4;
myarray['Name3']=6;
How do I then get the 'Name1' later? I am using a loop to populate the array element names and values and need to be able to get the names later (in another function).
Thanks!,
LJ Wilson
My personal saying - Just remember, it can always get worse, and usually will.