title: PHP output array as an HTML table
body: <p>I am trying to output an array as an html table, a sample of the array is..</p>
  
  <pre><code>Array
  (
      [18] =&gt; Array
          (
              [colour] =&gt; red
              [size] =&gt; large
              [age] =&gt; 220
          )
          [19] =&gt; Array
          (
              [colour] =&gt; yellow
              [size] =&gt; small
              [age] =&gt; 20
          )
          [12] =&gt; Array
          (
              [colour] =&gt; brown
              [size] =&gt; large
              [age] =&gt; 2
          )
  )
  </code></pre>
  
  <p>I am ok with doing a foreach for a simple array but does anyone have an example showing this being converted into a table for this type of array?</p>