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