PHP - Error and Exception Handling
Identify the problem in this PHP code:
try {
echo "Start";
throw new Exception("Oops");
} catch (Error $e) {
echo "Caught error";
}
Identify the problem in this PHP code:
try {
echo "Start";
throw new Exception("Oops");
} catch (Error $e) {
echo "Caught error";
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions