Problem Statement
What block is used to handle exceptions in PHP?
Explanation
PHP handles exceptions using try-catch blocks. Code that might fail goes in try, and the catch block handles the thrown exception.
Code Solution
SolutionRead Only
try { throw new Exception('Error'); } catch(Exception $e) { echo $e->getMessage(); }