Question: what is difference between error and exception in php?
Answer: Since version 4, PHP provides errors to tell that something went wrong. It is possible to trigger errors and register an error handler but they are unrecoverable. ... Exceptions are catchable, unlike errors, meaning that you can catch them and try to recover or continue with the execution of the program.