The finfo class

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

Introduction

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

Class synopsis

finfo {
public __construct ([ int $options = FILEINFO_NONE [, string $magic_file = NULL ]] )
public buffer ( string $string = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) : string
public file ( string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) : string
public set_flags ( int $options ) : bool
}

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top