Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> PHP

Hàm realpath_cache_get() trong PHP


Hàm realpath_cache_get() trả về các entry (mục) của realpath cache dưới dạng mảng. Mỗi entry chứa key, is_dir, realpath, expires.

Cú pháp

realpath_cache_get()

Tham số

  • Không có tham số.

Giá trị trả về

Trả về mảng các entry của realpath cache.

Ví dụ

<?php
print_r(realpath_cache_get());
?>

Kết quả

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