error_reporting() function: Turn off Error Reporting in PHP

error_reporting() is an inbuilt function of PHP (hypertext preprocessor) language. It is used to turn off the reporting of errors and warnings. Sometimes, we need to make use of it as not to get unnecessary errors. For example, when you define conditions in if(condition), if that does not produce true, then your else statement will … Read more