krsort() function: the key values are sorted in reverse order. : Array sort « Data Structure « PHP
- PHP
- Data Structure
- Array sort
krsort() function: the key values are sorted in reverse order.
Its syntax is: void krsort (array $array)
<?
$w = array ("A" => "a",
"I" => "i",
"A" => "z",
"F" => "f",
"C" => "c");
krsort($w);
print_r($w);
?>
Related examples in the same category