arsort( ) function reverse sorts it by its values while preserving the keys
//bool arsort ( array &arr [, int options] ) <? $capitalcities['England'] = 'London'; $capitalcities['Wales'] = 'Cardiff'; $capitalcities['Scotland'] = 'Edinburgh'; arsort($capitalcities); ?>