PHP - Error and Exception Handling
Consider this code:
What will be the output?
class MyException extends Exception {}
try {
throw new MyException("Error!");
} catch (Exception $e) {
echo "Caught: " . get_class($e);
}What will be the output?
