PHP error_reporting exclude notice and deprecated
For information to anyone who want to exclude more than one option of error_reporting in PHP, use this:
Use () and | to pick errors that you DON'T want to show.
Source: http://stackoverflow.com/questions/2803772/turn-off-deprecated-errors-php-5-3
error_reporting(E_ALL ^ (E_NOTICE | E_DEPRECATED | E_USER_DEPRECATED));
Use () and | to pick errors that you DON'T want to show.
Source: http://stackoverflow.com/questions/2803772/turn-off-deprecated-errors-php-5-3
Comments