is there a function to count multiple occurrences of different values in an array?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1317612/count-number-of-values-in-array-with-a-given-value">Count number of values in array with a given value</a>  </p>
</blockquote>



<p>Let's say I've an array fruits:</p>

<pre><code>$fruits = array("apple", "apple", "apple", "banana", "banana", "strawberry");
</code></pre>

<p>I want to transform this array into an array count:</p>

<pre><code>$count = array("apple" =&gt; 3, "banana" =&gt; 2, "strawberry" =&gt; 1);
</code></pre>

<p>What would be the easiest way possible to archieve this?</p>
