title: Creating table out from this array structure in php
body: <p>Im having trouble creating a table out from this array:</p>
  
  <p><a href="http://pastebin.com/DXFjfhHJ" rel="nofollow">http://pastebin.com/DXFjfhHJ</a></p>
  
  <p>I started out with this:</p>
  
  <pre><code>&lt;table style="width: 100%; text-align: center;"&gt;
      &lt;tr&gt;
          &lt;td&gt;Time&lt;/td&gt;
          &lt;td&gt;Aktivitet&lt;/td&gt;
          &lt;td&gt;Duration&lt;/td&gt;
          &lt;td&gt;Metabolisation&lt;/td&gt;
     &lt;/tr&gt;
  </code></pre>
  
  <p>then i did:</p>
  
  <pre><code>foreach{$training as $time =&gt; $metabolisation}{
  ?&gt;
                  &lt;tr style="text-align: left;"&gt;
                      &lt;td&gt;&lt;?php echo $time; ?&gt;&lt;/td&gt;
                      &lt;td&gt;Activity name&lt;/td&gt;
                      &lt;td&gt;Duration&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $metabolisation; ?&gt;&lt;/td&gt;
                  &lt;/tr&gt;
  &lt;?php
   }
  </code></pre>
  
  <p>Which works almost.. It shows the right $time ( 03:00 etc. ), but nothing in $metabolisation. And I dont know how to call the Activity, it should be the arrays "name" variable. Same with duration, it should be the arrays "duration"</p>
  
  <p>How can I do this?</p>