Skip to content

php教程学习-新编程xinbc.com

  • 首页
  • PHP 基础教程
  • PHP 数据库
  • PHP 表单
  • PHP 高级教程
  • PHP XML
  • PHP与AJAX
  • PHP参考手册
  • PHP 函数
    • PHP 5 String 函数
    • PHP Array 函数
    • PHP Calendar 函数
    • PHP Date / Time 函数
    • PHP Directory 函数
    • PHP Error 和 Logging 函数
    • PHP Filesystem 函数
    • PHP Filter 函数
    • PHP Ftp 函数
    • PHP HTTP 函数
    • PHP LibXML 函数
    • PHP Mail 函数
    • PHP MATH 函数
    • PHP MySQL 函数
    • PHP SimpleXML 函数
    • PHP XML Parser 函数
    • PHP Zip File 函数
    • PHP 杂项函数
Close Button

PHP file_exists() 函数


PHP file_exists() 函数

PHP Filesystem 函数

定义和用法

file_exists() 函数检查文件或目录是否存在。

如果指定的文件或目录存在则返回 true,否则返回 false。

语法

file_exists(path)
参数 描述
path 必需。规定要检查的路径。

实例

<?phpecho file_exists("test.txt");?>

输出:

1

PHP Filesystem 函数

标签:file_exists(), file_exists()函数, PHP file_exists(), PHP file_exists() 函数

文章导航

Next: PHP 教程
  • PHP XML
  • PHP 基础教程
  • PHP 数据库
  • PHP 表单
  • PHP 高级教程
  • PHP与AJAX
  • PHP参考手册

本站由xinbc二次开发