how to avaid notice in php code example Example: php not display notice // Report all errors except E_NOTICE error_reporting(E_ALL ^ E_NOTICE);