$array = array('zebra', 'monkey'); echo $array[0]; //zebra sort($array); echo $array[0]; //monkey
As you can see when you sort an array the index values change - is it possible to sort an array in alphabetical order while keeping the index values the same? As in $array[0] stays = zebra.
Edited by Lang, 09 September 2006 - 05:40 PM.