// all but notices error_reporting(E_ALL & ~E_NOTICE); // all but warnings error_reporting(E_ALL & ~E_WARNING); // all but notices and warnings error_reporting(E_ALL & ~(E_NOTICE | E_WARNING));