ksort() function sorts an array according to its key values, maintaining the original index association.
Its syntax is: void ksort (array array) <? $w = array ("A" => "a", "I" => "i", "A" => "z", "F" => "f", "C" => "c"); ksort($w); print_r( $w); ?>