PHP » PYTHON |
login |
register |
about
|
arr = ['one', 'two', 'three', 'four', 'stop', 'five'] for val in arr: if val == 'stop': break print val breakbreak ends execution of the current for, foreach, while, do-while or switch structure. break accepts an optional numeric argument which tells it how many nested enclosing structures are to be broken out of.
<?php
|
more
Recently updated
more
Most requested
more
Last requests
|