首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

finfo (class)

介绍

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

该类为fileinfo函数提供了一个面向对象的接口。

类概要

finfo {

public __construct ([ int $options = FILEINFO_NONE , string $magic_file = NULL ] )

代码语言:javascript
复制
public string buffer ( string $string = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] )
代码语言:javascript
复制
public string file ( string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] )
代码语言:javascript
复制
public bool set_flags ( int $options )

}

目录

  • finfo::buffer — Alias of finfo_buffer()
  • finfo::__construct — Alias of finfo_open
  • finfo::file — Alias of finfo_file()
  • finfo::set_flags — Alias of finfo_set_flags()

← mime_content_type

finfo::buffer →

扫码关注腾讯云开发者

领取腾讯云代金券