Learn about Display Error in PHP

Error news is helpful for debugging functions. As well, maybe you have got some unimportant PHP warning displaying on your web site that you simply would really like to get rid of. this text can show you ways to each show and conceal PHP errors and warnings from the user. 

On PHP this is code to Display All Errors and Warning Messages :
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
and Code to Turn See Warning Messages and Not Notices :
ini_set('display_errors',1);
error_reporting(E_ALL);
this to Turn Off Error Reporting :
error_reporting(0);
or you can use this :
ini_set('display_errors',0);
error_reporting(E_ALL|E_STRICT);
You can place the bits of code higher than close to anyplace on in your PHP code however it's to be higher than the error as an alternative you'll not see any warnings or notices since the code is browse from the highest down. To turn on or off error news site-wide then place the lines of code in particular different PHP in your WordPress site’s wp-config.php file placed in your home directory. If you like to use your .htaccess file then you'll be able to use the subsequent code to show errors.

php_flag display_errors on
php_value error_reporting 7