Is it possible to create a multidimensional array that uses a string as the index instead of 0,1,2 (a number)?
I'm looking to do something like this:
the main array can use integers, but I would like to reference the values by a string for the 2nd level arrays.
Thanks.
I'm looking to do something like this:
Code:
var myArray = new Array(
new Array("index1"=>"value1","index2"=>"value2"),
new Array("index1"=>"value1","index2"=>"value2")
}
the main array can use integers, but I would like to reference the values by a string for the 2nd level arrays.
Thanks.