break (PHP 4, PHP 5) break ends execution of the current for, foreach, while, do-while or switch structure. ... So you may want to dynamically choose the loop level to break from:
php.net