Home > Article > Backend Development > How to turn off notice warning in phpini
How to turn off notice warning in phpini
1. Change error_reporting## in the php.ini file
#Change to:error_reporting=E_ALL & ~E_NOTICE2. If you cannot operate the php.ini file, you can use the following method to add it to the page where you want to disable notice error prompts The following code:
<?php error_reporting(E_ALL^E_NOTICE); ?>or
error_reporting(0);For more PHP related knowledge, please visit
PHP Chinese website!
The above is the detailed content of How to turn off notice warning in phpini. For more information, please follow other related articles on the PHP Chinese website!