• home
  • Email: trainings@synapseindia.careers

Blogs

back

HOW TO TEST THE ERROR HANDLER:PHP

Oct 08, 2015

The default error handling in PHP is very easy and simple,whenver an error is occured it is sent ot client browser with flename,line number etc. <?php //error handler function function customError($errno, $errstr) { echo "<b>Error:</b> [$errno] $errstr"; } //set error handler set_error_handler("customError"); //trigger error echo($test); ?>

SynapseIndia (CEO: Shamit Khemka)