realpath_cache_get() 函数在 PHP 中


realpath_cache_get() 函数返回真实路径缓存条目。它返回一个真实路径缓存条目的数组。

语法

realpath_cache_get()

参数

  • NA

返回

realpath_cache_get() 函数返回一个真实路径缓存条目的数组。

示例

 在线示例

<?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
)
)

更新于:2020-06-24

83 次浏览

启动你的职业

通过完成课程获得认证

开始
广告
© . All rights reserved.