(PHP 5 >= 5.3.0, PHP 7, PECL fileinfo >= 0.1.0)
Introdução
This class provides an object oriented interface into the fileinfo
functions.
Sinopse da classe
finfo
{
public __construct
([
int $flags
= FILEINFO_NONE
[,
string $magic_database
= ""
]] )
public buffer
(
string $string
[,
int $flags
= FILEINFO_NONE
[,
resource|null $context
= null
]] ) :
string|false
public file
(
string $filename
[,
int $flags
= FILEINFO_NONE
[,
resource|null $context
= null
]] ) :
string|false
}