But be careful with this - associative array elements can either be referenced(I think) by the string keys of the key/value pairs, or by relative positioning in the array. So when you say $my_array[1], are you looking for the value whose string key is 1, or the value of the 2nd element(using relative addressing, the 0 element would be the first, and the 1 element would be the second)?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.