Loop through first item in foreach twice
<p>I'm trying to figure out the cleanest way to loop through the first item in an array twice. My foreach looks like this:</p>

<pre><code>foreach ($array as $arr) {
    $arr['item'];
}
</code></pre>

<p>The reason I'm asking is because I'm looping through and running a curl script that requires setting a cookie. On the first loop, it's not setting properly but it is on all others. Ideally I'd like to just hit that first twice, and overwrite the value I'm pulling.</p>
