array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'fileinfo.constants.php', 1 => 'Predefined Constants', ), 'up' => array ( 0 => 'book.fileinfo.php', 1 => 'Fileinfo', ), 'prev' => array ( 0 => 'fileinfo.resources.php', 1 => 'Resource Types', ), 'next' => array ( 0 => 'ref.fileinfo.php', 1 => 'Fileinfo Functions', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/fileinfo/constants.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
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.
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.