Recently I had to remove all the PHP warning from a site.

An easy way is to add

error_reporting(0);

to index.php

more info...