Is there something similar in PHP to the try ... else in Python?
try ... else
I need to know if the try block executed correctly as when the block executed correctly
try { $clean = false; ... $clean = true; } catch (...) { ... } if (!$clean) { //... }
That's the best you can do.