NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
>[success] ### 判断类型 1.获取文件类型 A.使用函数 ~~~txt filetype($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.filetype.php](http://php.net/manual/zh/function.filetype.php) 2.获取文件大小 A.使用函数 ~~~txt filesize($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.filesize.php](http://php.net/manual/zh/function.filesize.php) 3.获取创建时间 A.使用函数 ~~~txt filectime($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.filectime.php](http://php.net/manual/zh/function.filectime.php) 4.获取访问时间 A.使用函数 ~~~txt fileatime($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.fileatime.php](http://php.net/manual/zh/function.fileatime.php) 5.获取路径中文件名 A.使用函数 ~~~txt basename($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.basename.php](http://php.net/manual/zh/function.basename.php)