PHP教程 file_exists() 函数

2024-10-15 00:28:16

1、新建一个114.php,如图所示:

PHP教程 file_exists() 函数

3、声明PHP与浏览器交互的文件类型和编码,如图所示:

PHP教程 file_exists() 函数

5、输入代码:echo file_exists("test.txt"),如图所示:

PHP教程 file_exists() 函数

7、至此,本教程结束!

猜你喜欢