proceed with caution
as the documentation already says
FILEINFO_MIME will output something like "image/jpeg; charset=binary"
FILEINFO_MIME_TYPE outputs "image/jpeg"
FILEINFO_MIME_ENCODING outputs "binary"
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.