小白教程
所有教程
关于
Search
172.71.254.115
172.71.254.115
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func filesystem is readable”的源代码
本页内容
上一节:
Func_filesystem_is_link
下一节:
Func_filesystem_is_uploaded_file
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:is_readable()}}[[Category:PHP Filesystem 文件系统参考手册|49]] = PHP is_readable() 函数 = [[Category:PHP Filesystem 文件系统参考手册]] == 定义和用法 == is_readable() 函数检查指定的文件是否可读。 如果文件可读,该函数返回 TRUE。 == 语法 == <pre> is_readable(file) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | file | 必需。规定要检查的文件。 |} == 提示和注释 == '''注释:'''该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。 <sample title="" desc="" lang="php" hererun="1"> <?php $file = "test.txt"; if(is_readable($file)) { echo ("$file is readable"); } else { echo ("$file is not readable"); } ?> </sample> 上面的代码将输出: <pre> test.txt is readable </pre> [[Category:PHP Filesystem 文件系统参考手册]]
返回至“
Func filesystem is readable
”。
上一节:
Func_filesystem_is_link
下一节:
Func_filesystem_is_uploaded_file