|
Posted by petermichaux on 09/18/05 19:42
I am trying to get a message something like your Notice message. What
do I need to change about my error handler? I thought my error handler
would catch Errors, Warnings, User Notices and Notices.
Thanks,
Peter
<?php
set_error_handler("my_error_handler", E_ALL);
function my_error_handler($errNo, $errStr, $errFile, $errLine)
{
$error_message = "\nERRNO: ". $errNo ."\nTEXT: " . $errStr . " \n" .
"LOCATION: " . $errFile . ", line " . $errLine . ", at "
..
date("F j, Y, g:i a") . "\n\n";
echo "<pre>" . $error_message . "</pre>";
exit;
}
$array['foo']=3;
echo 'M'.$array['foo'].'M';
//How can I index into the array to an index that doesn't exist?
echo 'M'.$array['bar'].'M';
?>
[Back to original message]
|