realpath_cache_get
Get realpath cache entry
Function name: realpath_cache_get()
Applicable version: PHP 5 >= 5.3.2, PHP 7
Function description: The realpath_cache_get() function is used to get the current realpath cache list.
usage:
realpath_cache_get(void): array|false
Parameters: No parameters
Return value: If the realpath cache list is successfully obtained, a related array containing cache information is returned. If no cache information is available, false is returned.
Example:
// 获取realpath 缓存列表$cacheList = realpath_cache_get(); if ($cacheList !== false) { foreach ($cacheList as $path => $realpath) { echo "路径: " . $path . " => 真实路径: " . $realpath . "<br>"; } } else { echo "无realpath 缓存信息可用。"; }
Notes: