title: How to sum similar value in array? PHP
body: <p>I have array, like this and I want to join him by name:
  Please help to decide problem.</p>
  <pre><code>$params[] = 
    [
      &quot;name&quot; =&gt; &quot;Robert&quot;
      &quot;visitCount&quot; =&gt; 2
      &quot;coef&quot; =&gt; &quot;5.50&quot;
    ],
    [
      &quot;name&quot; =&gt; &quot;Anna&quot;
      &quot;visitCount&quot; =&gt; 1
      &quot;coef&quot; =&gt; &quot;3.58&quot;
    ],
    [
      &quot;name&quot; =&gt; &quot;Joe&quot;
      &quot;visitCount&quot; =&gt; 1
      &quot;coef&quot; =&gt; &quot;8.00&quot;
    ],
    [
      &quot;name&quot; =&gt; &quot;Robert&quot;
      &quot;visitCount&quot; =&gt; 2
      &quot;coef&quot; =&gt; &quot;1.50&quot;
    ]
  </code></pre>
  <p>How I can get concatenation similar name and sum of coef?</p>
  <p>Result that I need:</p>
  <pre><code>[
      &quot;name&quot; =&gt; &quot;Robert&quot;
      &quot;visitCount&quot; =&gt; 2
      &quot;coef&quot; =&gt; &quot;7.00&quot;
    ],
    [
      &quot;name&quot; =&gt; &quot;Anna&quot;
      &quot;visitCount&quot; =&gt; 1
      &quot;coef&quot; =&gt; &quot;3.58&quot;
    ],
    [
      &quot;name&quot; =&gt; &quot;Joe&quot;
      &quot;visitCount&quot; =&gt; 1
      &quot;coef&quot; =&gt; &quot;8.00&quot;
    ],
  </code></pre>