把所有选项值以数组的形式返回,方便你当 phpinfo()无法使用的时候来使用。
手册例子,比如:
<?php
$inis = ini_get_all();
print_r($inis);
?>
部分输出:
Array
(
[allow_call_time_pass_reference] => Array
(
[global_value] => 1
[local_value] => 1
[access] => 6
)
[allow_url_fopen] => Array
(
[global_value] => 1
[local_value] => 1
[access] => 7
)
...
)
* ini_restore: 回复配置文件默认的值
就是回复配置文件默认的值,当你使用 ini_set 设置后可以使用它来恢复。