略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: finfo

2024-04-29

finfo 类

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

简介

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

类摘要

class finfo {
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
}

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.finfo.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3