PHP - Error and Exception Handling
Which of the following is the correct way to declare a custom exception class named MyError in PHP?
?Which of the following is the correct way to declare a custom exception class named MyError in PHP?
?extends.extends Exception. class MyError implements Exception {} wrongly uses implements, which is for interfaces. class MyError extends Error {} extends Error, which is a different base class. class MyError inherits Exception {} uses invalid syntax inherits.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions