$clothes = array( 'hats' => 75, 'coats' => 32, 'shoes' => 102);
$names = array_keys($clothes);
$items = array_values($clothes);
array_multisort($items, $names);
$num = count($clothes) - 1;
printf("Most items: %s (%d); least items: %s (%d).
\n",$names[$num], $items[$num], $names[0], $items[0]);
?>