I need to iterate several collections and if I find a condition I have to exit more than one iteration loop.
Ex:
foreach ($order->getItemCollection() as $item) {
foreach ($order->getFreight()->getPackageCollection() as $packs) {
foreach ($packs->getItemCollection() as $packItem) {
if ($item->getSku() == $packItem->getSku()) {
...
break ;
}
}
}
}
How can I do this?