Smorg Posted May 24, 2007 Posted May 24, 2007 Success: Returns a 2 dimensional array where element[n][0] is the key and element[n][1] is the value.How could this be? For each key there can be only one associated value. I would think it would be a 1 dimensional array in which each key element[x] would return its respective value. with a 2d array this means you've got the number of elements squared values returned... wtf could all that stand for?
Smorg Posted May 24, 2007 Author Posted May 24, 2007 Ahh nvm... I see. From the array you can get either the key or value depending on weather dimension 2 is 0 or 1, and the first dimension is the order that the pairs are read. Makes sense! ^^
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now