PHP: foreach an array objects, how to move internal pointer to the next one?
<p>I need to loop and array of objects. In some cases, inside the loop, I need to move the internal pointer to the next element in the array. How do I do that?</p>

<pre><code>foreach($objects as $object)
{
   // TODO: move internal pointer to next one?
   // next($objects) doesn't work
}
</code></pre>
