文字

restore_include_path

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

restore_include_path还原 include_path 配置选项的值

说明

void restore_include_path ( void )

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

返回值

没有返回值。

范例

Example #1 restore_include_path() 例子

<?php

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

set_include_path ( '/inc' );

echo 
get_include_path ();   // /inc

// 自 PHP 4.3.0 起可用
restore_include_path ();

// 所有版本均可用
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
上一篇: 下一篇: