Tutorials Point


  Learning PHP
  Advanced PHP
  PHP Function Reference
  PHP Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

PHP Function clearstatcache()


previous

Advertisements

Syntax

void clearstatcache ( void );

Definition and Usage

When you use stat(), lstat(), or any of the other file functions, PHP caches the information those functions return in order to provide faster performance. However, in certain cases, you may want to clear the cached information.

You will use the clearstatcache() function to clear the information that PHP caches about a file.

Paramters

ParameterDescription
voidNA

Return Value

No value is returned.

Example

Following is the usage of this function:

<?php
clearstatcache();         
?>

previous Printer Friendly

Advertisements


  

Advertisements