//bool arsort ( array &arr [, int options] )
$capitalcities['England'] = 'London';
$capitalcities['Wales'] = 'Cardiff';
$capitalcities['Scotland'] = 'Edinburgh';
asort($capitalcities);
// sorted by value, so Cardiff, Edinburgh, London
?>