If you put E_ALL and want to remove some constant from the error reporting than use as given below.

<?php
  error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_DEPRECATED);

  //OR 
  error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
?>

 

And if you want to put some specific constants without E_ALL than use as give below.

<?php error_reporting(E_ERROR | E_WARNING | E_NOTICE); ?>

 

Note : E_ALL select all the constants of the error reporting.

  • PHP
  • error-reporting