title: Get three highest values from the array
body: <p>I want to get three highes values from my array, but it should be sorted properly by keys also.</p>
  
  <p>I have this code:</p>
  
  <pre><code>&lt;?php
  $a = array(130, 1805, 1337);
  arsort($a);
  print_r($a);
  ?&gt;
  </code></pre>
  
  <p>The output of the above is following:</p>
  
  <pre><code>Array
  (
      [1] =&gt; 1805
      [2] =&gt; 1337
      [0] =&gt; 130
  )
  </code></pre>
  
  <p>Its working fine, but I want it additionaly to sort its keys from the highest to the lowest value.</p>
  
  <p>Example:</p>
  
  <pre><code>Array
  (
      [2] =&gt; 1805
      [1] =&gt; 1337
      [0] =&gt; 130
  )
  </code></pre>
  
  <p>To be clear: I want it be to sorted by the keys: array key number 2 will be always used for the <em>highest</em> value, array key number 0 will be always used for the <em>lowest</em> value.</p>
  
  <p>How can I do that?</p>
  
  <p><em>/let me know if you don't understand something.</em></p>