php stop warning code example Example 1: php remove warning error_reporting(E_ALL ^ E_WARNING); Example 2: php remove warning error_reporting(E_ERROR | E_PARSE);