What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-06 20:09:08
php thorwable vs exception
Throwable does not work on PHP 5.x. To catch both exceptions and errors in PHP 5.x and 7, add a catch block for Exception AFTER catching Throwable first. Once PHP 5.x support is no longer needed, the block catching Exception can be removed. try {  ... Add solution