function myErrorHandler($errno, $errstr, $errfile, $errline) {
echo "<b>Custom error:</b> [$errno] $errstr
";
echo " Error on line $errline in $errfile
";
}
set_error_handler("myErrorHandler");
function myErrorHandler($errno, $errstr, $errfile, $errline) {
echo "<b>Custom error:</b> [$errno] $errstr
";
echo " Error on line $errline in $errfile
";
}
set_error_handler("myErrorHandler");