tiggyboo
02-11-2003, 10:11 PM
How do I go about traversing an associative array via a loop without knowing the names of all the elements?
I.e.
var myarray = new Array();
myarray["first_name"] = "Joe";
myarray["last_name"] = "Smith";
How to a traverse this array without having to specify "first_name" or "last_name", i.e., to dump the contents of the array?
Thanks in advance,
Tiggy
I.e.
var myarray = new Array();
myarray["first_name"] = "Joe";
myarray["last_name"] = "Smith";
How to a traverse this array without having to specify "first_name" or "last_name", i.e., to dump the contents of the array?
Thanks in advance,
Tiggy