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"
Queste costanti sono definite da questa estensione e sono disponibili solo se l'estensione è stata compilata nel PHP o se è stata caricata dinamicamente a runtime.
FILEINFO_NONE
(int)
FILEINFO_SYMLINK
(int)
FILEINFO_MIME_TYPE
(int)
FILEINFO_MIME_ENCODING
(int)
FILEINFO_MIME
(int)
FILEINFO_COMPRESS
(int)
FILEINFO_DEVICES
(int)
FILEINFO_CONTINUE
(int)
FILEINFO_PRESERVE_ATIME
(int)
FILEINFO_RAW
(int)
\ooo
octal
representation.
FILEINFO_EXTENSION
(int)
JPEG
images, then the return value is multiple extensions separated by a forward slash e.g.:
"jpeg/jpg/jpe/jfif"
. For unknown types not available in the
magic.mime database, then return value is "???"
.
Available since PHP 7.2.0.
FILEINFO_APPLE
(int)
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"