realpath_cache_get
(PHP 5 >= 5.3.2, PHP 7, PHP 8)
realpath_cache_get — 獲取真實目錄快取的詳情
說明
realpath_cache_get(): array
獲得真實路徑快取的詳情。
返回值
返回真實路徑快取詳情的陣列。鍵是原始路徑以及值為具體資訊陣列,含有該解析的路徑,過期時間以及其他的更多選項。
範例
示例 #1 realpath_cache_get() example
<?php
var_dump(realpath_cache_get());
?>
以上例程的輸出類似於:
array(2) { ["/test"]=> array(4) { ["key"]=> int(123456789) ["is_dir"]=> bool(true) ["realpath"]=> string(5) "/test" ["expires"]=> int(1260318939) } ["/test/test.php"]=> array(4) { ["key"]=> int(987654321) ["is_dir"]=> bool(false) ["realpath"]=> string(12) "/root/test.php" ["expires"]=> int(1260318939) } }