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"
以下常數由擴充功能定義,因此只有在擴充功能被編譯到 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)
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"