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