Zend Certified PHP Engineer (ZCE) PHP 7.1 — Question 3
Which of these error types may be handled by a user defined error handler function? (Choose two.)
Answer options
- A. E_ERROR
- B. E_NOTICE
- C. E_PARSE
- D. E_WARNING
Correct answer: A, C
Explanation
The correct answers are E_ERROR and E_PARSE because these errors are considered fatal and can be caught by a user-defined error handler. E_NOTICE and E_WARNING are typically not fatal and do not require immediate handling, making them unsuitable for custom error handling in this context.