Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; cronometro has a deprecated constructor in /home/wdrfree/public_html/model/admin/model.php on line 4
Show / Hide PHP Errors | wdrfree ▷

Show / Hide PHP Errors

Thursday 19th, Nov, 2015 | #PHP


Simple guide to show and hidden errors in php.

 



//Show All Errors
error_reporting(E_ALL);
ini_set('display_errors', 1);


//Hide Errors
error_reporting(0);

//All Errors Except E_NOTICE
error_reporting(E_ALL ^ E_NOTICE);