php not display notice
snippet in php

php not display notice

user853

// Report all errors except E_NOTICE   
error_reporting(E_ALL ^ E_NOTICE);