獲取目前的 include_path 配置選項

get_include_path

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

get_include_path獲取目前的 include_path 配置選項

說明

get_include_path(): string

獲取目前 include_path 配置選項的值。

返回值

返回字串的路徑。

範例

示例 #1 get_include_path() 例子

<?php
echo get_include_path();

// 或使用 ini_get()
echo ini_get('include_path');
?>

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *