1. ini_get () gets the configuration parameters, and ini_set () sets the configuration parameters.
Copy codeThe Code is as follows: <? Php
Echo ini_get ('display _ errors '); // 1
// Modify the configuration information of php. ini dynamically, and the script becomes invalid after execution.
Ini_set ('display _ errors ', 0 );
Echo ini_get ('display _ errors '); // 0
2. ini_get_all () Get all configuration information
Copy codeThe Code is as follows: <? Php
// Print all configuration information...
Print_r (ini_get_all ());
3. ini_restore () resumes configuration information to the original value.
Copy codeThe Code is as follows: <? Php
Echo ini_get ('display _ errors '); // 1
// Modify the configuration information of php. ini dynamically, and the script becomes invalid after execution.
Ini_set ('display _ errors ', 0 );
Ini_restore ('display _ errors ');
Echo ini_get ('display _ errors '); // 1