>[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)