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"