Код: Выделить всё
try {
$obj = new Clas();
if ($obj->foo) {
// how to exit from this try block?
}
// do other stuff here
} catch(Exception $e) {
}
Подробнее здесь: https://stackoverflow.com/questions/164 ... atch-block
Код: Выделить всё
try {
$obj = new Clas();
if ($obj->foo) {
// how to exit from this try block?
}
// do other stuff here
} catch(Exception $e) {
}