i have an array, $planet
it works like this
$planet[Planetnumber][someinfo] = statistic
planet number is any number
some info can be a number 0-7, with each number corresponding to a diferent value
for the purpose of my question, i am looking at 5, which is score.
now i have successfully filled the array with data but i am looking to order the array to display the items in order of score (Desc), but i cant work out what to do.
Code: Select all
array_multisort($planet[*][5], SORT_DESC, SORT_NUMERIC);what should i be using and what sintax?
i hope someone can help
many thanks
Tom