finfo 클래스
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL fileinfo >= 0.1.0)
소개
이 클래스는 fileinfo 함수에 객체 지향 인터페이스를 제공합니다.
클래스 개요
class finfo {
/* Methods */
public __construct(int $flags = FILEINFO_NONE, ?string $magic_database = null)
public buffer(string $string, int $flags = FILEINFO_NONE, ?resource $context = null): string|false
public file(string $filename, int $flags = FILEINFO_NONE, ?resource $context = null): string|false
public set_flags(int $flags): bool
}
목차
- finfo::buffer - finfo_buffer()의 별칭
- finfo::__construct - finfo_open의 별칭
- finfo::file - finfo_file의 별칭()
- finfo::set_flags - finfo_set_flags()의 별칭