Any of those help Setting up the error handler is easy enough - examples here - but filtering based on the code which actually triggered the error just isn't achievable without some very messy regex matching (or something similar) against the error message string. You're probably going to have to look at some other form of solution if you really require this functionality. You could use isset() to check index validity beforehand, or create an array-style class (e.g. using ArrayAccess or ArrayObject from the SPL) with some index-checking logic built-in.
like below fixes the issue You can change the error_reporting setting in php.ini to not include E_NOTICE. There should be some examples right in the php.ini file. However, this is unwise.. What you should do is fix your code. For example, instead of: