Source Code:
(back to article)
<?php $items = array('apple', 'banana', 'cucumber'); foreach ($items as $item) { if ($item == 'banana') { break; } echo $item . "\n"; }
Result:
Report an issue