Немогу догнать почему, подскажите
function country($sel = "") {
$coun = "";
$country = array("AF"=>"AFGHANISTAN","AL"=>"ALBANIA");
foreach ($country as $key=>$value ) {
for($i = 0; $i < count($country); $i++) {
if($sel == $country[$i])
$coun .="<option value='$key[$i]' selected='selected'>$value[$i]</option>";
else
$coun .="<option value='$key[$i]'>$value[$i]</option>";
}
}
return $coun;
}