title: In PHP find duplicate entry in a multi dimensional array then sum the values in a specific key of that array
body: <p>I have an array that was created from a CSV file.  The array contains the following.  Basically it has four lines and six columns.  I.E. it is multi dimensional.</p>
  
  <pre><code>Array ( 
      [1] =&gt; Array ( 
          [WBS Element] =&gt; 1234567.01 
          [Proj System Status] =&gt; 
          [CY Actuals] =&gt; 579373 
          [ITD Actuals] =&gt; 696,609 
          [Overall Commitment] =&gt; 
          [Overall Assigned] =&gt; 696,609 
          [CYSpent] =&gt; 579,373 ) 
      [2] =&gt; Array ( 
          [WBS Element] =&gt; 1234567.02 
          [Proj System Status] =&gt; 
          [CY Actuals] =&gt; 86689 
          [ITD Actuals] =&gt; 86,689 
          [Overall Commitment] =&gt; 
          [Overall Assigned] =&gt; 86,689 
          [CYSpent] =&gt; 86,689 ) 
      [3] =&gt; Array ( 
          [WBS Element] =&gt; 1234567.02.01 
          [Proj System Status] =&gt; 
          [CY Actuals] =&gt; 10750 
          [ITD Actuals] =&gt; 86,689 
          [Overall Commitment] =&gt; 
          [Overall Assigned] =&gt; 86,689 
          [CYSpent] =&gt; 86,689 ) 
      [4] =&gt; Array ( 
          [WBS Element] =&gt; 1234567.02.02 
          [Proj System Status] =&gt; 
          [CY Actuals] =&gt; 22756 
          [ITD Actuals] =&gt; 86,689 
          [Overall Commitment] =&gt; 
          [Overall Assigned] =&gt; 86,689 
          [CYSpent] =&gt; 86,689 ) 
      )
  </code></pre>
  
  <p>You will notice that one of my keys "WBS Element" has a value in it where the first ten characters might match another row in the array.  What I need to accomplish is to take any row where the first ten characters of the "WBS Element" match and sum the other columns together so that the result is a aggregated array with the same columns but no rows with the first ten characters matching.</p>
  
  <p>Hopefully that makes sense what I am trying to accomplish.  I am new when it comes to PHP so any help would be appreciated.  I ahve gotton a column summerization to work but I can't figure out to search an array for "matching" keys then combine those together by summing.</p>
  
  <p>Thanks in advance!</p>