<?php $array = array('One', 'Two', 'Three', 'Four', 'Five'); foreach ($array as $item) { if ($item == "Three") { break; } echo "$item<br />"; } ?>
Output:
One Two