PHP

Fungsi realpath_cache_get() PHP

Contoh
Kembalikan entri cache realpath:

<?php
var_dump(realpath_cache_get());
?>
  /* Output : 
array(15) { ["/var/www/html/demo/demo_form_validation_escapechar.php"]=> array(4) { ["key"]=> int(4083885225040087076) ["is_dir"]=> bool(false) ["realpath"]=> string(54) "/var/www/html/demo/demo_form_validation_escapechar.php" ["expires"]=> int(1606730583) } ["/var/www/html/demo/demo_form_validation_required.php"]=> array(4) { ["key"]=> int(3980889160840282178) ["is_dir"]=> bool(false) ["realpath"]=> string(52) "/var/www/html/demo/demo_form_validation_required.php" ["expires"]=> int(1606730599) } ["/var/www/html"]=> array(4) { ["key"]=> int(1438560323331296433) ["is_dir"]=> bool(true) ["realpath"]=> string(13) "/var/www/html" ["expires"]=> int(1606730654) } ["/var/www/html/demo/welcome.php"]=> array(4) { ["key"]=> int(7960645272341695690) ["is_dir"]=> bool(false) ["realpath"]=> string(30) "/var/www/html/demo/welcome.php" ["expires"]=> int(1606730625) } ["/var/www"]=> array(4) { ["key"]=> float(1.5408950988325E+19) ["is_dir"]=> bool(true) ["realpath"]=> string(8) "/var/www" ["expires"]=> int(1606730654) } ["/var/www/html/demo/demo_func_filesystem_rp_cache_get.php"]=> array(4) { ["key"]=> int(7623026534141929717) ["is_dir"]=> bool(false) ["realpath"]=> string(56) "/var/www/html/demo/demo_func_filesystem_rp_cache_get.php" ["expires"]=> int(1606730667) } ["/var/www/html/demo/demo_session2.php"]=> array(4) { ["key"]=> int(7985553265533444368) ["is_dir"]=> bool(false) ["realpath"]=> string(36) "/var/www/html/demo/demo_session2.php" ["expires"]=> int(1606730524) } ["/var/www/html/demo/demo_cookie1.php"]=> array(4) { ["key"]=> float(1.0003465376645E+19) ["is_dir"]=> bool(false) ["realpath"]=> string(35) "/var/www/html/demo/demo_cookie1.php" ["expires"]=> int(1606730615) } ["/var"]=> array(4) { ["key"]=> float(1.6710127960665E+19) ["is_dir"]=> bool(true) ["realpath"]=> string(4) "/var" ["expires"]=> int(1606730654) } ["/var/www/html/demo/demo_global_post.php"]=> array(4) { ["key"]=> float(1.4284162554591E+19) ["is_dir"]=> bool(false) ["realpath"]=> string(39) "/var/www/html/demo/demo_global_post.php" ["expires"]=> int(1606730539) } ["/var/www/html/demo"]=> array(4) { ["key"]=> int(8591938057086545337) ["is_dir"]=> bool(true) ["realpath"]=> string(18) "/var/www/html/demo" ["expires"]=> int(1606730654) } ["/var/www/html/demo/demo_db_select_oo_table.php"]=> array(4) { ["key"]=> float(1.0067586390861E+19) ["is_dir"]=> bool(false) ["realpath"]=> string(46) "/var/www/html/demo/demo_db_select_oo_table.php" ["expires"]=> int(1606730564) } ["/var/www/html/demo/showphpfile_db_select_orderby_oo.php"]=> array(4) { ["key"]=> float(1.0476188072256E+19) ["is_dir"]=> bool(false) ["realpath"]=> string(55) "/var/www/html/demo/showphpfile_db_select_orderby_oo.php" ["expires"]=> int(1606730654) } ["/var/www/html/demo/demo_form_validation_special.php"]=> array(4) { ["key"]=> int(6519729189731170994) ["is_dir"]=> bool(false) ["realpath"]=> string(51) "/var/www/html/demo/demo_form_validation_special.php" ["expires"]=> int(1606730638) } ["/var/www/html/showphpfile.php"]=> array(4) { ["key"]=> float(1.6844564012712E+19) ["is_dir"]=> bool(false) ["realpath"]=> string(29) "/var/www/html/showphpfile.php" ["expires"]=> int(1606730564) } }

Definisi dan Penggunaan

Fungsi realpath_cache_get() dapat digunakan untuk mengembalikan entri cache realpath.

Syntax

realpath_cache_get()

Detail Teknis

Return Value:entri array cache pada realpath
PHP Version:5.3.2+

Hanifah Nurbaeti