title: merge two foreach in one layout
body: <p>i got two arrays.</p>
  
  <p>from results i want to make a table with <code>foreach</code></p>
  
  <p>but i dont know how to make it work in one table row..</p>
  
  <p>this is what i got</p>
  
  <pre><code>&lt;table&gt;
  &lt;?php foreach ($appky as $appka) : ?&gt;
  &lt;tr class="counter_apps" height="20px"  &gt;
  &lt;td width="40%"&gt;&lt;?php echo $appka-&gt;name; ?&gt;&lt;/td&gt;
  &lt;td width="20%"&gt;&lt;?php echo $appka-&gt;all_items;?&gt;&lt;/td&gt;
  &lt;td width="20%"&gt;&lt;?php echo $appka-&gt;published; ?&gt;&lt;/td&gt;
  &lt;td width="20%"&gt;&lt;?php echo $appka-&gt;unpublished; ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php endforeach;  ?&gt;
  &lt;/table&gt;
  
  &lt;table&gt;
  &lt;?php foreach ($applications as $application) : ?&gt;
  &lt;tr&gt;&lt;td&gt;&lt;?php echo $application-&gt;name; ?&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;?php endforeach; ?&gt;  
  &lt;/table&gt;
  </code></pre>
  
  <p>so what i want is simply add to the first table another column with <code>$application-&gt;name;</code></p>
  
  <p>what i'm missing here??
  thanks</p>