PHP - Función FileInfo class ()

La clase finfo puede proporcionar una interfaz orientada a objetos en funciones de fileinfo.

Sintaxis

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
}