title: PHP: Sort array numerically descending
body: <p>this question looks like it should have a simple answer but google and the php manual are being no help to me, maybe I just don't understand what they are telling me.</p>
  
  <p>I have an array <strong>example:</strong> </p>
  
  <pre><code>$outcomes_array = array(1,4,2,3,5);
  </code></pre>
  
  <p>It will always contain just numbers, how do I go about sorting this array so that it is always in descending order?</p>
  
  <p>so output I want:</p>
  
  <pre><code>$outcomes_array[0] = 5
  $outcomes_array[1] = 4
  $outcomes_array[2] = 3
  </code></pre>
  
  <p>and so on...</p>
  
  <p>Thanks :)</p>