I have an associative array, which keys I want to use in numbers. What I mean: The array is kinda like this:
$countries = array
"AD" => array("AND", "Andorra"),
"BG" => array("BGR", "Bulgaria")
);
Obviously AD is 0 and BG is 1, but when I print $countries[1]
it doesn't display even "Array"
.
When I print $countries[1][0]
it also doesn't display anything. I have the number of the key, but I shouldn't use the associative key.
AD
is0
". Maybe it's not even true? – Kerrek SB