Sometimes we need to avoid the warnings in the PHP. We know very well these warnings doesn’t need to take care. These kind of we need to use one PHP function.
It doesn’t display any Errors on the page. Be careful to using this kind of function.
The below example illustrate how to avoid errors,
Include the below lines into the Container file where the error coming from
php ini_set('display_errors',0)
When using this the errors doesn’t display on the page.
0 comments: