But what if you want to turn off error reporting in php using your php code? you can accomplish this easily using php built in function error_reporting()
<?php error_reporting(0); // Turn off all error reporting ?>
More info : http://www.php.net/error_reporting