中文(繁體)
file_exists()函數檢查文件或目錄是否存在。
file_exists()
如果指定的文件或目錄存在則返回true,否則返回false。
<?php echo file_exists ( "test.txt" ) ; ?>
輸出:
1
file_exists ( path )