PHP 中的 realpath_cache_get() 函数

phpprogrammingserver side programming更新于 2025/8/31 3:37:17

realpath_cache_get() 函数返回 realpath 缓存条目。它返回一个 realpath 缓存条目数组。

语法

realpath_cache_get()

参数

  • 不适用

返回

realpath_cache_get() 函数返回一个 realpath 缓存条目数组。

示例

<?php
   print_r(realpath_cache_get())
?>

输出

Array
(
[/home] => Array
(
[key] => 4353355791257440477
[is_dir] => 1
[realpath] => /home
[expires] => 1538630044
)

[/home/cg/root] => Array
(
[key] => 1131813419205508649
[is_dir] => 1
[realpath] => /home/cg/root
[expires] => 1538630044
)

[/home/cg/root/8944881/main.php] => Array
(
[key] => 584844883037958768
[is_dir] =>
[realpath] => /home/cg/root/8944881/main.php
[expires] => 1538630044
)

[/home/cg] => Array
(
[key] => 9037225891674879750
[is_dir] => 1
[realpath] => /home/cg
[expires] => 1538630044
)

[/home/cg/root/8944881] => Array
(
[key] => 722006552431300374
[is_dir] => 1
[realpath] => /home/cg/root/8944881
[expires] => 1538630044
)
)

相关文章