PHP - Error and Exception Handling
Find the error in this PHP code snippet:
try {
// some code
} catch (Exception $e) {
echo "General exception";
} catch (InvalidArgumentException $e) {
echo "Invalid argument";
}Find the error in this PHP code snippet:
try {
// some code
} catch (Exception $e) {
echo "General exception";
} catch (InvalidArgumentException $e) {
echo "Invalid argument";
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions