正在浏览:file_exists

在 PHP 中判断文件是否存在,可以使用 is_file 或 file_exists ,判断文件夹是否存在,可以使用: is_dir 和 file_exists ,即 file_exists = is_dir + is_file 。 file_exists 、 is_file 、 is_dir 效率对比: 文