Summarizу array in PHP
<p>I'm mainly programming in language that used for business systems, and there is a useful built-in function that can sum an array. For exmaple, we've got array like this:</p>

<pre><code>red | 1
red | 1
green | 1
orange | 2
orange | 1
orange | 1
blue | 1
</code></pre>

<p>After using summarizing function we get</p>

<pre><code>red | 2
green | 1
orange | 4
blue | 1
</code></pre>

<p>Is it equivalent function in php?</p>

<p>Thank you.</p>

<p><strong>UPD.</strong></p>

<pre><code>$array = array('red'=&gt;1,'red'=&gt;2,'green'=&gt;1....);
</code></pre>
