php array count max value
<p>If I have:
$mainarray = some array of things with some repeated values</p>

<pre><code>$array_counted = array_count_values ($mainarray);
</code></pre>

<p>How can I find the maximum value in $array_counted?</p>

<p>(This would be the element that appeared most often in $mainarray I think.  Its mostly a syntax issue as I am pretty sure I could loop it, but not sure of the syntax to use)</p>
