file_exists 会判断文件,也可以判断文件夹所以你可以这么用 is_file 判断文件, is_dir 判断文件夹 is_writable是否可以写入权限
file_exists()返回的是布尔类型的值,true 和false