[TYPO3-core] Usage of "break"
Jigal van Hemert
jigal.van.hemert at typo3.org
Wed Jun 18 13:48:22 CEST 2014
Hi,
On 18-6-2014 11:45, Bernhard Kraft wrote:
> Is it allowe to have statements like
>
> break 2;
It's allowed as long as it's not a sign of bad code.
If you have multiple nested loops and you need to finish all of them as
soon as a condition is met it can be necessary.
If it brings a considerable speed improvement it could also be useful.
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-team-core
mailing list