PHP - Fonction FileInfo class ()

La classe finfo peut fournir une interface orientée objet dans les fonctions fileinfo.

Syntaxe

finfo {
   public __construct([ int $options = FILEINFO_NONE [, string $magic_file = "" ]] )
   public buffer( string $string [, int $options = FILEINFO_NONE [, resource $context ]] ) : string
   public file( string $file_name [, int $options = FILEINFO_NONE [, resource $context ]] ) : string
   public set_flags( int $options ) : bool
}