note 42490 deleted from language.operators.errorcontrol by tularis
| From: | tularis@php.net | Date: | Tue, 12 Aug 2008 16:37:44 +0000 |
| Subject: | note 42490 deleted from language.operators.errorcontrol by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143408@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster __AT__ digitalanime __DOT__ nl
----
Someone over here wanted to know how to use the @ in your error handler... It's easy:
<?php
function my_error_handler(.......)
{
if(error_reporting() == 0) // error_reporting() = 0, so it was called with @ in front of it
{
// do nothing
}
else
{
// do something
}
}
?>