If you want to code a catch block that catches all types of exceptions and gets the message associated with the exception, you start the catch block like this:

If you want to code a catch block that catches all types of exceptions and gets the message associated with the exception, you start the catch block like this:



Answer: catch (Exception $e) {


Learn More :