Which PHP function can be used to customize the error handler?
- set_error_handler()
- custom_error_handler()
- modify_error_handler()
- handle_error()
The set_error_handler() function in PHP is used to customize the error handler. It allows you to define a custom error-handling function to manage how errors are handled in your PHP application.
Loading...
Related Quiz
- You are using a switch statement in your PHP script and you want to execute the same block of code for multiple cases. How would you do this?
- When is the elseif statement used in PHP?
- Which predefined PHP function can be used to reverse the order of the elements in an array?
- What is the difference between sort() and rsort() in PHP?
- For how long does a session variable persist by default in PHP?