php验证文件mime类型的函数mime_content_type董德多2021年8月27日0 php的 mime_content_type函数可以返回文件的类型,用法如下: ?phpecho mime_content_type(‘php.gif’) . “”;echo mime_content_type(‘test.php’);? 输出: image/giftext/plain