• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • restore_include_path()

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

    还原 include_path 配置选项的值

    说明

    restore_include_path(void): void

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

    返回值

    没有返回值。

    范例

    Example #1restore_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
    ?>
    

    参见

    上篇:putenv()

    下篇:set_include_path()