title: php loop inside different loop how?
body: <p>sorry for my english
  i want echo limit element inside each div
  here is my code:</p>
  
  <pre><code>&lt;?php 
  for ($i=1;$i&lt;=4;$i++) {
  echo "&lt;div class='container'&gt;";
  for ($j=1;$j&lt;=8;$j++) {
    echo "content Number" . $j . "&lt;br&gt;";
  }    
  echo "&lt;/div&gt;"
  }
  ?&gt;
  </code></pre>
  
  <p>my code doesn't work like i wish and i want result like this</p>
  
  <pre><code>&lt;div class="container"&gt;
  content Number 1
  content Number 2
  &lt;/div&gt;
  &lt;div class="container"&gt;
  content Number 3
  content Number 4
  &lt;/div&gt;
  &lt;div class="container"&gt;
  content Number 5
  content Number 6
  &lt;/div&gt;
  &lt;div class="container"&gt;
  content Number 7
  content Number 8
  &lt;/div&gt;
  </code></pre>