title: Break foreach loop 3
body: <p>I have this foreach loop for an array. I want to stop it after one cycle.</p>
  
  <pre><code>foreach ($r['result']['mounts'] as $item) echo '
  
                  &lt;li class="span3 clearfix" data-tag=', $item['qualityId'], 
    '&gt;
                   &lt;div class="element-item ', $item['qualityId'], '" data-category="element-item ', $item['qualityId'], '"&gt;
  
                              &lt;a
                                      href="//de.wowhead.com/item=', 
   $item['itemId'], '"
                                      class="', $item['qualityId'], '"
                              &gt;
                                      &lt;img
                                              src="http://wow.zamimg.com/images/wow/icons/large/', $item['icon'], '.jpg"
                                              alt="', htmlspecialchars($item['name']), '"
                                      &gt;
                              &lt;/a&gt;
                     &lt;/div&gt;&lt;/li&gt;';
  
    break;
   echo '
  </code></pre>
  
  <p>The array has 500 numeric keys.</p>
  
  <pre><code>[result] =&gt; Array
      (
          [mounts] =&gt; Array
              (
                  [0] =&gt; Array
                      (
                          [name] =&gt; Elfenbeinfarbener Falkenschreiter
                          [itemId] =&gt; 142369
                          [qualityId] =&gt; 4
                          [icon] =&gt; inv_ability_mount_cockatricemount_white
                      )
  
                  [1] =&gt; Array
                      (
                          [name] =&gt; Tundramammut des Reisenden
                          [itemId] =&gt; 44234
                          [qualityId] =&gt; 4
                          [icon] =&gt; ability_mount_mammoth_brown_3seater
                      )
  
                  etc.
  </code></pre>
  
  <p>The problem is that after one loop the whole array gets echo out again.</p>