PHP函数is_readable介绍
定义和用法
is_readable() 函数判断指定文件名是否可读。
语法
is_readable(file)
说明
如果由 file 指定的文件或目录存在并且可读,则返回 TRUE。
提示和注释
注释:本函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。
例子
<?php$file = "test.txt";if(is_readable($file)) { echo ("$file is readable"); }else { echo ("$file is not readable"); }?>
输出:
test.txt is readable
本文出自:琅枫个人博客。如需转载请注明出处!
本文出处:"https://www.langfujun.top/function/285.html"
如果您觉得文章对你有帮助,可以进行打赏。
打赏多少,您高兴就行,谢谢您对琅枫博客的支持! ~(@^_^@)~
微信打赏

支付宝打赏
