I have some PHP code. When I run it, a warning message appears.
How can I remove/suppress/ignore these warning messages?
You really should fix whatever's causing the warning, but you can control visibility of errors with error_reporting(). To skip warning messages, you could use something like:
error_reporting()
error_reporting(E_ERROR | E_PARSE);
1.4m articles
1.4m replys
5 comments
57.0k users