PHP 8.5.0 Beta 2 available for testing

The finfo class

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

Introduction

This class provides an object-oriented interface into the fileinfo functions.

Class synopsis

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): true
}

Table of Contents

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /