Which of these error types may be handled by a user defined error handler function? {Choose two.)

Which of these error types may be handled by a user defined error handler function? {Choose two.)
A . E_ERROR
B . E_NOTICE
C . E_PARSE
D . E_WARNING

Answer: A,C

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
John
John
3 years ago

https://www.php.net/manual/en/function.set-error-handler.php

The following error types cannot be handled with a user defined function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING independent of where they were raised, and most of E_STRICT raised in the file where set_error_handler() is called.

So the answer is B, D