realpath_cache_get
Obtenez une entrée de cache RealPath
Nom de la fonction: realPath_cache_get ()
Version applicable: PHP 5> = 5.3.2, php 7
Fonction Description: La fonction realpath_cache_get () est utilisée pour obtenir la liste de cache RealPath actuelle.
usage:
realpath_cache_get (void): array | false
Paramètres: pas de paramètres
Valeur de retour: Si la liste de cache RealPath est obtenue avec succès, un tableau connexe contenant des informations de cache est renvoyé. Si aucune information de cache n'est disponible, FALSE est renvoyé.
Exemple:
// 获取realpath 缓存列表$cacheList = realpath_cache_get(); if ($cacheList !== false) { foreach ($cacheList as $path => $realpath) { echo "路径: " . $path . " => 真实路径: " . $realpath . "<br>"; } } else { echo "无realpath 缓存信息可用。"; }
Notes: