If you just want to hide Notice: type errors, the
<?php error_reporting(E_ALL ^ E_NOTICE); ?>
does the trick.
It's best to try and fix the Notice: errors though
You can't 'hide' Error: or Warning: messages since they usually cause the script to malfunction.
Best regards,
Ken