定义和用法is_readable() 函数检查指定的文件是否可读。 如果文件可读,该函数返回 TRUE。 语法is_readable(file)
提示和注释注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。 实例<?php$file = "test.txt";if(is_readable($file)) { echo ("$file is readable"); }else { echo ("$file is not readable"); }?> 上面的代码将输出: test.txt is readable
下载地址: PHP is_link() 函数 PHP is_uploaded_file() 函数 |