Php check duplicate values in an array
<p>I have a question about arrays.</p>

<p>I have made an array of id's.</p>

<p>The array looks a little like this.</p>

<pre><code>$iIds[0] = 12  
$iIds[1] = 24  
$iIds[2] = 25  
$iIds[3] = 25  
$iIds[4] = 25  
$iIds[5] = 30
</code></pre>

<p>Now i need code to see if any of the values are in the array multiple times.
Then, if the value is in the array 3 times, inject the value into another array.</p>

<p>I tried using array_count_values() , but it returns with the values as keys.</p>

<p>Can anyone help me with this?</p>
