💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
>[success] ### 判断类型以及是否存在 1.判断是否是文件 A.使用函数 ~~~txt is_file($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.is-file.php](http://php.net/manual/zh/function.is-file.php) 2.判断是否是目录 A.使用函数 ~~~txt is_dir($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.is-file.php](http://php.net/manual/zh/function.is-file.php) 3.判断文件或目录是否存在 A.使用函数 ~~~txt file_exists($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.file-exists.php](http://php.net/manual/zh/function.file-exists.php)