How to count how many identical ligament $ key = $ val in the general array?
<p>I have Array:</p>

<pre><code>$arr = array();
$arr[0] = array(2628927 =&gt; "8250843");
$arr[1] = array(2628927 =&gt; "8250843");
$arr[2] = array(2783907 =&gt; "8250843");
$arr[3] = array(2783907 =&gt; "8250843");
$arr[4] = array(2648250 =&gt; "8250843");
$arr[5] = array(2628927 =&gt; "8250843");

$arr1 = array();
</code></pre>

<p>unique ligament <strong>key=> value</strong> i get with script</p>

<pre><code>foreach($arr as $a)
{
    if(!in_array($a, $arr1)){
        $arr1[] = $a;
    }
}
</code></pre>

<p>than i output value unique ligament <strong>key=> value</strong>:</p>

<pre><code>foreach ($arr1 as $keys =&gt; $elms ) {
foreach ( $elms as $key =&gt; $val ) {
echo "$key = $val&lt;br&gt;";
</code></pre>

<p><strong>How to count how many identical ligament $ key = $ val in the general array $arr?</strong></p>

<pre><code>}
}
</code></pre>

<p><em>For example count for 2628927 => "8250843" will be 3</em></p>

<p><strong>How get this?</strong></p>

<p><em><strong>IF YOU WANT VOTE DOWN PLEASE GIVE ANSWER.</em></strong></p>

<p><em><strong>BIG THANKS)</em></strong></p>
