title: nesting html with php foreach statement
body: <p>I am trying to get back into the foreach statement, as seen in the example code below. 
  is there a way to do that? </p>
  
  <pre><code>&lt;?php 
      foreach($boxes as $box) 
      {
         foreach($box as $thing) 
         {
  ?&gt;
          &lt;img src="&lt;?php echo $thing ?&gt;"/&gt;
  &lt;?php
         }  
      }
  ?&gt;
  
  &lt;!-- more html code here outside of foreach statement that don't want to be loop --&gt;
  
  // want to go back in to the foreach statement     
  
  &lt;?php echo $thing; ?&gt;
  </code></pre>
  
  <p>so the output will be </p>
  
  <pre><code>&lt;img src="1"&gt;
  &lt;img src="2"&gt;
  &lt;img src="3"&gt;
  
  &lt;div&gt;this only appear once&lt;/div&gt;
  
  &lt;img src="1"&gt;&lt;p&gt;1&lt;/p&gt;
  &lt;img src="2"&gt;&lt;p&gt;2&lt;/p&gt;
  &lt;img src="3"&gt;&lt;p&gt;3&lt;/p&gt;
  </code></pre>