realpath_cache_get() function in PHP


The realpath_cache_get() function returns realpath cache entries. It returns an array of realpath cache entries.

Syntax

realpath_cache_get()

Parameters

  • NA

Return

The realpath_cache_get() function returns an array of realpath cache entries.

Example

 Live Demo

<?php
   print_r(realpath_cache_get())
?>

Output

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

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 24-Jun-2020

51 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements