Limit the number of items in an array
<p>I have an array that gets processed through a <code>foreach</code> loop.</p>

<pre><code>foreach($images as $imageChoices) {
    Do stuff here
}
</code></pre>

<p>How do I limit the loop to only process the first 4 items in the array?</p>
