(PHP 5 >= 5.3.2, PHP 7, PHP 8)
realpath_cache_get — 獲取真實(shí)目錄緩存的詳情
獲得真實(shí)路徑緩存的詳情。
返回真實(shí)路徑緩存詳情的數(shù)組。鍵是原始路徑以及值為具體信息數(shù)組,含有該解析的路徑,過期時(shí)間以及其他的更多選項(xiàng)。
示例 #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)
}
}