How to suppress PHP error messages

At this piece of code to the top of your PHP script

error_reporting(0);

It’s always better to try and fix the errors than to hide them!!

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.

Menu