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
}
                  
                
목차