title: PHP Subtotal from array
body: <p>Can someone please explain how to obtain the total of the values coming under each of the two outer array elements?  I want to end with an array showing the values for each date Nov 18, 2011 and Nov 22, 2011.  Here is the array data:</p>
  
  <pre><code>Array
  (
  [Nov 18, 2011] =&gt; Array
      (
          [C] =&gt; Array
              (
                  [T] =&gt; 49783.531672
                  [X] =&gt; 25013.184
              )
          [S] =&gt; Array
              (
                  [T] =&gt; 32908.863528
              )
          [I] =&gt; Array
              (
                  [T] =&gt; 44561.52
              )
      )
  [Nov 22, 2011] =&gt; Array
      (
          [C] =&gt; Array
              (
                  [T] =&gt; -5168.944696
              )
          [S] =&gt; Array
              (
                  [T] =&gt; -3823.890504
              )
      )
  )
  </code></pre>
  
  <p>Thanks for the help.</p>