定义和用法 
clearstatcache()函数的作用是:清除文件状态缓存。 
PHP的缓存数据对更快更好的运行函数是非常有利的。如果一个文件在脚本中测试了多次,你也许会禁止对正确的结果进行缓存。为了实现这点,你可以使用clearstatcache()函数。 
语法 
clearstatcache() 
提示和注意 
提示:执行缓存的函数: 
stat() 
lstat() 
file_exists() 
is_writable() 
is_readable() 
is_executable() 
is_file() 
is_dir() 
is_link() 
filectime() 
fileatime() 
filemtime() 
fileinode() 
filegroup() 
fileowner() 
filesize() 
filetype() 
fileperms() 
案例 
                        
                        PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
                Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号