array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.realpath-cache-get.php', 1 => 'realpath_cache_get', ), 'up' => array ( 0 => 'ref.filesystem.php', 1 => 'Funciones del Sistema de Archivos', ), 'prev' => array ( 0 => 'function.readlink.php', 1 => 'readlink', ), 'next' => array ( 0 => 'function.realpath-cache-size.php', 1 => 'realpath_cache_size', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/filesystem/functions/realpath-cache-get.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.2, PHP 7, PHP 8)
realpath_cache_get — Obtiene las entradas de la caché de la ruta real
Devuelve una matriz de las entradas de la caché de la ruta real. Las claves son entradas de la ruta real original, y los valores son matrices de elementos de información, conteniendo la ruta resuelta, fecha de caducidad y otras opciones guardadas en la caché.
Ejemplo #1 Ejemplo de realpath_cache_get()
<?php
var_dump(realpath_cache_get());
?>
El resultado del ejemplo sería algo similar a:
array(2) { ["/test"]=> array(4) { ["key"]=> int(123456789) ["is_dir"]=> bool(true) ["realpath"]=> string(5) "/test" ["expires"]=> int(1260318939) } ["/test/test.php"]=> array(4) { ["key"]=> int(987654321) ["is_dir"]=> bool(false) ["realpath"]=> string(12) "/root/test.php" ["expires"]=> int(1260318939) } }