Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
Custom error: [$errno] $errstr
"; echo " Error on line $errline in $errfile
"; } // Set user-defined error handler function set_error_handler("myErrorHandler"); $test=2; // Trigger error if ($test>1) { trigger_error("A custom error has been triggered"); } // Restore previous error handler restore_error_handler(); // Trigger error again if ($test>1) { trigger_error("A custom error has been triggered"); } ?>