title: PHP Iterate multi-dimensional array
body: <p>How can I iterate through this multidimensional array and return the count of positive numbers and the count of negative numbers.  The answer should be 1 positive and 5 negative.  Thanks.</p>
  
  <pre><code>Array
  (
  [Nov 18, 2011] =&gt; Array
      (
          [C] =&gt; Array
              (
                  [C] =&gt; Array
                      (
                          [T] =&gt; -1324.388328
                      )
                  [S] =&gt; Array
                      (
                          [T] =&gt; -249.976472
                      )
              )
      )
  [Dec 24, 2011] =&gt; Array
      (
          [C] =&gt; Array
              (
                  [C] =&gt; Array
                      (
                          [T] =&gt; -2523.107928
                      )
                  [S] =&gt; Array
                      (
                          [T] =&gt; 103.533528
                      )
              )
      )
  [Dec 27, 2011] =&gt; Array
      (
          [C] =&gt; Array
              (
                  [C] =&gt; Array
                      (
                          [T] =&gt; -4558.837928
                      )
                  [S] =&gt; Array
                      (
                          [T] =&gt; -1639.376472
                      )
              )
      )
  )
  </code></pre>