php file_exists函数怎样用?
作用:搜检文件或目次是不是存在。
语法:
file_exists(path)
参数:
path 必须。规定要搜检的途径。
申明:
假如指定的文件或目次存在则返回 true,不然返回 false。
php file_exists()函数运用示例
<?php $file = file_exists("./test.txt"); echo $file; ?>
以上就是php file_exists函数怎样用的细致内容,更多请关注ki4网别的相干文章!