Is it less efficient to put a try-catch block inside of a loop as opposed to wrapping the loop with a try-catch in php if it is intended that the loop will end if an exception occurs? Or is there essentially no difference?
EDIT:
i.e.,
foreach (/*...*/) {
//...
try {
//...
} catch (/*...*/) {
break;
}
//...
}
versus:
try {
foreach (/*...*/) {
//...
}
}