Question: what is the difference between error and exception in php?
Answer: PHP makes a distinction between "errors" and "exceptions". ... Later, with the release of PHP 5, exceptions were introduced to be used in an object oriented way. Exceptions are catchable, unlike errors, meaning that you can catch them and try to recover or continue with the execution of the program.