Onetastic Macro Documentation >
>
break
break Statement
Description
Breaks out of a for, foreach or a while loop. With the given numeric-expression, it can break out of multiple levels of loops. The expression is optional.
Syntax
break numeric-expression
Examples
$sum = 0
for ($i = 1, $i < 10, ++$i)
if ($i < 3)
continue
$sum += $i
if ($i == 7)
break
See Also
|