title: PHP foreach loop skip first 3 items
body: <p>I have a list of 6 products that i want to split in 2 lists of 3 products next to each other. The list are made within a foreach loop, the first list stops after the count == 2, so 3 items wil be displayed. The second list should start with the fourth item. How can i achieve this?</p>
  
  <p>This is wat makes the first list of 3 items:</p>
  
  <blockquote>
  <pre><code>&lt;?php
      $_categoryId = explode(' ', $category['id']);
      $count = 0;
      $_productCollection = Mage::getModel('catalog/category')-&gt;load($_categoryId)
          -&gt;getProductCollection()
          -&gt;addAttributeToSelect('*')
          -&gt;setOrder('date_added', 'DESC');
  ?&gt;
  &lt;?php foreach ($_productCollection as $_product): ?&gt;
      &lt;li class="category-row-list-item"&gt;
          &lt;a class="product-name" href="&lt;?php echo $_product-&gt;getProductUrl() ?&gt;"&gt;
              &lt;?php echo $this-&gt;htmlEscape($_product-&gt;getName()) ?&gt;
          &lt;/a&gt;
      &lt;/li&gt;
  &lt;?php
      if($count == 2) break; // Stop after 3 items
      $count++;
  ?&gt;
  &lt;?php endforeach ?&gt;
  </code></pre>
  </blockquote>
  
  <p>Best regards,
  Robert</p>