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.