PHP FileInfo类()函数 finfo类可以提供面向对象的文件信息函数接口。 语法 finfo { public __construct([ int options = FILEINFO_NONE [, stringmagic_file = "" ]] ) public buffer( string string [, intoptions = FILEINFO_NONE [, resource context ]] ) : string public file( stringfile_name [, int options = FILEINFO_NONE [, resourcecontext ]] ) : string public set_flags( int $options ) : bool } PHPCopy