英 [ɪgˈzɪst]   美 [ɪɡˈzɪst]  

vi.存在;生存;生活;继续存在

第三人称单数: exists 现在分词: existing 过去式: existed 过去分词: existed

php file_exists()函数 语法

作用:检查文件或目录是否存在。

语法:file_exists(path)

参数:

参数描述
path    必需。规定要检查的路径。    

说明:如果指定的文件或目录存在则返回 true,否则返回 false。

php file_exists()函数 示例

<?php
$file = file_exists("./test.txt");
echo $file;
?>

热门推荐