« mime_content_type
finfo::buffer »

finfo クラス

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL fileinfo >= 0.1.0)

はじめに

このクラスは、fileinfo 関数にオブジェクト指向のインターフェイスを提供します。

クラス概要

class finfo {
/* メソッド */
public function __construct(int $flags = FILEINFO_NONE, ?string $magic_database = null)
public function buffer(string $string, int $flags = FILEINFO_NONE, ?resource $context = null): string|false
public function file(string $filename, int $flags = FILEINFO_NONE, ?resource $context = null): string|false
public function set_flags(int $flags): true
}

目次

関連キーワード:
finfo   flags   buffer   エイリアス   fileinfo   construct   resource   context   mime   content   type   Fileinfo   オブジェクト指向   インターフェイス   提供   概要   magic   database   filename   目次
関連する関数・ページ:
finfo.set-flags   finfo.file   book.fileinfo   finfo.buffer   finfo.construct   function.finfo-buffer