Turn off all errors using PHP

If you want to turn off all the warning or errors which shows on the dynamic pages, so you can do it with the help of PHP Function.

The Function is:
error_reporting(0);
You can use it, Where your coding is working well but showing the warning and other errors, So there you can use this function. By this function no one error or warning will be display.

Complete Code:

<?php
error_reporting(0);
?>

Share This Post

Post Comment