title: How to create table from array?
body: <p>I have a bit of difficulty creating some tables in a specific order from this array: <code>$test</code>.</p>
  
  <p>The array looks like this:</p>
  
  <pre><code>Array
  (
      [ET5] =&gt; Array(
          [0] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 430
              )
          )
          [1] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 406
              )
          )
      )
      [FA] =&gt; Array(
          [0] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 0
              )
          )                   
          [1] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 0
              )
          )
      )
      [ET5] =&gt; Array(
          [0] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 189
              )
          )
          [1] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 228
              )
          )
      )
      [FA] =&gt; Array(
          [0] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 0
              )
          )
          [1] =&gt; Array(
              [0] =&gt; Array(
                  [total] =&gt; 0
              )
          )
      )
  )
  </code></pre>
  
  <p>and the tables I want to create should look like this:</p>
  
  <p>table1</p>
  
  <pre><code>test1      test2   test3
  ET5        430     189
  FA         0       0
  </code></pre>
  
  <p>table2</p>
  
  <pre><code>test1      test2    test3
  ET5        406      228
  FA         0        0
  </code></pre>
  
  <p><code>test1, test2, test3</code> are known strings</p>
  
  <p>I'm a bit stuck on this one, notice how the values from the <code>ET5</code> are in two tables.</p>
  
  <p>Any ideas on this one?</p>