小白教程
所有教程
关于
Search
172.69.59.15
172.69.59.15
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func filesystem file exists”的源代码
本页内容
上一节:
Func_filesystem_file
下一节:
Func_filesystem_file_get_contents
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:file_exists()}}[[Category:PHP Filesystem 文件系统参考手册|19]] = PHP file_exists() 函数 = [[Category:PHP Filesystem 文件系统参考手册]] == 定义和用法 == file_exists() 函数检查文件或目录是否存在。 如果指定的文件或目录存在则返回 TRUE,否则返回 FALSE。 == 语法 == <pre> file_exists(path) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | path | 必需。规定要检查的路径。 |} <sample title="" desc="" lang="php" hererun="1"> <?php echo file_exists("test.txt"); ?> </sample> 上面的代码将输出: <pre> 1 </pre> [[Category:PHP Filesystem 文件系统参考手册]]
返回至“
Func filesystem file exists
”。
上一节:
Func_filesystem_file
下一节:
Func_filesystem_file_get_contents