略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: restore_include_path

2024-04-29

restore_include_path

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

restore_include_path还原 include_path 配置选项的值

说明

restore_include_path(): void

还原到 php.ini 中设置的 include_path 主值。

返回值

没有返回值。

范例

示例 #1 restore_include_path() 例子

<?php

echo get_include_path();  // .:/usr/local/lib/php

set_include_path('/inc');

echo 
get_include_path();  // /inc

restore_include_path();

// 或使用 ini_restore
ini_restore('include_path');

echo 
get_include_path();  // .:/usr/local/lib/php

?>

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.restore-include-path.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3