restore_include_path
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
restore_include_path — 还原 include_path 配置选项的值
警告
本函数已自 PHP 7.4.0 起弃用,自 PHP 8.0.0 起移除。强烈建议不要依赖本函数。
参数
此函数没有参数。
返回值
没有返回值。
示例
示例 #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
?>
参见
- ini_restore() - 恢复配置选项的值
- get_include_path() - 获取当前的 include_path 配置选项
- set_include_path() - 设置 include_path 配置选项
- include - include
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.restore-include-path.php