array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.finfo-set-flags.php', 1 => 'finfo_set_flags', ), 'up' => array ( 0 => 'ref.fileinfo.php', 1 => 'Fonctions Fileinfo', ), 'prev' => array ( 0 => 'function.finfo-open.php', 1 => 'finfo_open', ), 'next' => array ( 0 => 'function.mime-content-type.php', 1 => 'mime_content_type', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/fileinfo/functions/finfo-set-flags.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP >= 5.3.0, PHP 7, PHP 8, PECL fileinfo >= 0.1.0)
finfo_set_flags -- finfo::set_flags — Fixe des options de configuration libmagic
Style procédural
Style orienté objet
Cette fonction fixe diverses options de Fileinfo. Les options peuvent être aussi fixées directement dans finfo_open() ou par d'autres fonctions Fileinfo.
finfo
Une instance finfo, retourné par finfo_open().
flags
Une ou une union de plusieurs constantes Fileinfo.