title: how to limit foreach loop to three loops
body: <p>how to limit this loop ..just thee loops..thanks for helping</p>
  
  <pre><code>&lt;?php
      foreach($section['Article'] as $article) :
  ?&gt;
  &lt;tr&gt;
      &lt;td&gt;
          &lt;?php
              if ($article['status'] == 1) {
                  echo $article['title'];
              } 
          ?&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;?php
              if($article['status']== 1) {
                  echo '&amp;nbsp;'.$html-&gt;link('View', '/articles/view/'.$article['id']);
              }
          ?&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php 
      endforeach; 
  ?&gt;
  </code></pre>