$fruits = array ("d"= "lemon", "a"= "orange", "b"= "banana", "c"= "apple"); ksort ($fruits); reset ($fruits); while (list ($key, $val) = each ($fruits)) {echo "$key = $val\n";}
?php $fruits = array( "d"= "papaye" ,"a"= "orange" ,"b"= "banane" ,"c"= "ananas"); ksort($fruits); reset($fruits); while (list ($key, $val) = each ($fruits)) {echo "$key = $val\n";}?