<?php $foo = array('first', 'second'); // First time, break after first foreach ($foo as $bar) { if ($bar == 'first') break; } foreach($foo as $bar) { var_dump('First element in this iteration: ', $bar); }
You have javascript disabled. You will not be able to edit any code.