I have this array:
static $countryList = array(
["AF" => "Afghanistan"],
["AL" => "Albania"],
["DZ" => "Algeria"],
//many more countries
);
I want to do something like $countryList['DZ'] to get "Algeria"
why those damned sub arrays?
well, some countries must come twice
basically this...
static $countryList = array(
["US" => "USA"],
["AL" => "Albania"],
["DZ" => "Algeria"],
//...
["UB" => "Uganda"],
["US" => "USA"]
);
it's used for a select list