PHP realpath_cache_size() Function Last Updated : 19 May, 2023 Comments Improve Suggest changes Like Article Like Report The realpath_cache_size() function is an inbuilt function in PHP that allows you to get or set the size of the realpath cache in bytes. Syntax: realpath_cache_size(): int Parameter: This function does not accept any parameters. Return Value: This function returns the current size of the real path cache in bytes. Example 1: The following program demonstrates the realpath_cache_size() function. PHP <?php $cache_size = realpath_cache_size(); echo "The current size of the realpath cache is " . $cache_size . " bytes."; ?> Output: The current size of the realpath cache is 538 bytes. Example 2: The following program demonstrates the realpath_cache_size() function. PHP <?php $threshold = 10485760; $cache_size = realpath_cache_size(); if ($cache_size > $threshold) { echo "The current size of the realpath cache is greater than the threshold."; } else { echo "The current size of the realpath cache is less than or equal to the threshold."; } ?> Output: The current size of the realpath cache is less than or equal to the threshold. Reference: https://www.php.net/manual/en/function.realpath-cache-size.php Create Quiz Comment N neeraj3304 Follow 0 Improve N neeraj3304 Follow 0 Improve Article Tags : PHP PHP-function PHP-Filesystem Explore BasicsPHP Syntax4 min readPHP Variables5 min readPHP | Functions6 min readPHP Loops4 min readArrayPHP Arrays5 min readPHP Associative Arrays4 min readMultidimensional arrays in PHP5 min readSorting Arrays in PHP4 min readOOPs & InterfacesPHP Classes2 min readPHP | Constructors and Destructors5 min readPHP Access Modifiers4 min readMultiple Inheritance in PHP4 min readMySQL DatabasePHP | MySQL Database Introduction4 min readPHP Database connection2 min readPHP | MySQL ( Creating Database )3 min readPHP | MySQL ( Creating Table )3 min readPHP AdvancePHP Superglobals6 min readPHP | Regular Expressions12 min readPHP Form Handling4 min readPHP File Handling4 min readPHP | Uploading File3 min readPHP Cookies9 min readPHP | Sessions7 min read Like