this question looks like it should have a simple answer, but google and the php manual don't help me, maybe I just don't understand what they are telling me.
I have an array example:
$outcomes_array = array(1,4,2,3,5);
It will always contain only numbers, how can I sort this array so that it is always in descending order?
so the conclusion i want is:
$outcomes_array[0] = 5 $outcomes_array[1] = 4 $outcomes_array[2] = 3
etc.
Thanks:)
source share