Skip to content

set_error_handler

This function allows creating custom error handlers.

set_error_handler(function($errno, $errstr) {
echo "Custom error: $errstr";
});