©
本文檔使用 php中文網手册 發布
下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
FILEINFO_NONE
( integer )
FILEINFO_SYMLINK
( integer )
FILEINFO_MIME_TYPE
( integer )
FILEINFO_MIME_ENCODING
( integer )
FILEINFO_MIME
( integer )
FILEINFO_COMPRESS
( integer )
FILEINFO_DEVICES
( integer )
FILEINFO_CONTINUE
( integer )
FILEINFO_PRESERVE_ATIME
( integer )
FILEINFO_RAW
( integer )
[#1] jerome at chaman dot ca [2013-11-15 20:45:02]
proceed with caution
as the documentation already says
FILEINFO_MIME will output something like "image/jpeg; charset=binary"
while
FILEINFO_MIME_TYPE outputs "image/jpeg"
and
FILEINFO_MIME_ENCODING outputs "binary"