Every once in awhile PHP decides to throw some errors. Usually it’s because you didn’t do something right, but what if it’s throwing errors anyways? What if you are on a production server and you need to suppress the errors?
In that case add the following the the top of your file, or include it as a header.
Optionally, if only a particular statement is throwing an error, you can do this:
$myName = @get_name();
The “@” symbol will suppress any errors that the calling function makes.
Remember, suppressing errors is no substitute for good coding. But, sometimes you do what you have to do.