realpath_cache_get()

1. 定义

该函数获取真实路径的缓存详情。 成功时返回缓存详情的数组。

2. 语法

realpath_cache_get ( void ) : array

3. 参数说明

该函数不传入任何参数!

4. 示例

<?php

// realpath_cache_get()
// 获取真实路径的缓存详情

$res = realpath_cache_get();
var_dump($res);
/* 输出:
array(2) {
  ["E:\demo\demo.php"]=>
  array(8) {
    ["key"]=>
    int(1191794609859903692)
    ["is_dir"]=>
    bool(false)
    ["realpath"]=>
    string(16) "E:\demo\demo.php"
    ["expires"]=>
    int(1577694324)
    ["is_rvalid"]=>
    bool(false)
    ["is_wvalid"]=>
    bool(false)
    ["is_readable"]=>
    bool(false)
    ["is_writable"]=>
    bool(false)
  }
  ["E:\demo"]=>
  array(8) {
    ["key"]=>
    float(1.828243370887E+19)
    ["is_dir"]=>
    bool(true)
    ["realpath"]=>
    string(7) "E:\demo"
    ["expires"]=>
    int(1577694324)
    ["is_rvalid"]=>
    bool(false)
    ["is_wvalid"]=>
    bool(false)
    ["is_readable"]=>
    bool(false)
    ["is_writable"]=>
    bool(false)
  }
}
*/

5. 延展阅读