get_error_handler Gets the user-defined error handler function &reftitle.description; callablenullget_error_handler Returns the current error handler function, if any. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; Returns the currently defined error handler (if any). If the built-in error handler is used &null; is returned. The returned handler is the exact callable value that was passed to set_error_handler to define it. &reftitle.examples; <function>get_error_handler</function> example ]]> &reftitle.notes; Prior to PHP 8.5.0, this functionality can be provided by the following polyfill: ]]> &reftitle.seealso; error_reporting set_error_handler restore_error_handler trigger_error error level constants