

When a PHP exception is thrown, the PHP runtime looks for a catch statement that can handle that type of exception.
If one is not found, the exception is handed to the global exception handler that we will also cover in this article.
// run your code here
//code to handle the exception
//optional code that always runs
The following keywords are used for PHP exception handling.





