Its syntax is: void krsort (array $array) <? $w = array ("A" => "a", "I" => "i", "A" => "z", "F" => "f", "C" => "c"); krsort($w); print_r($w); ?>