title: PHP simple foreach loop with HTML
body: <p>I am wondering if it will work best to actually write the following for example:</p>
  
  <pre><code>&lt;table&gt;
      &lt;?php foreach($array as $key=&gt;$value){ ?&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $key; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;?php } ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>So basically embedding HTML inside foreach loop but without using <code>echo</code> to print the table tags. Will this work? I know in JSP this works.</p>