3. me love
ini_set('display_errors',1);
display_errors(E_ALL); OR display_errors(E_ALL ^ E_NOTICE);
if(PFW_DEBUG_MODE){ error_reporting(E_ALL ^ E_DEPRECATED);}else{ error_reporting(0);}
4.
//Trun off all error reporting
error_reporting(0);
//Report all PHP errors
error_reporting(-1);
//Report all PHP errors
error_reporting(E_ALL);
ini_set('error_reporting',E_ALL);