How to get the keys with highest values in a php array
<p>I have this array...</p>

<pre><code>Array (
[1168] =&gt; 46
[6973] =&gt; 27
[4585] =&gt; 24
[1224] =&gt; 23
[2010] =&gt; 20
[7514] =&gt; 19
[1167] =&gt; 17
[8349] =&gt; 7
[2476] =&gt; 7
[5313] =&gt; 7
[1208] =&gt; 2
)
</code></pre>

<p>And I need to get three keys (as values) with the highest values in the previous array:</p>

<pre><code>Array (
[0] =&gt; 1168
[1] =&gt; 6973
[2] =&gt; 4585
)
</code></pre>
