PHP 8.1.28 Released!

zip_entry_compressionmethod

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_compressionmethod检索目录实体的压缩方法

警告

本函数已自 PHP 8.0.0 起被废弃。强烈建议不要依赖本函数。

说明

zip_entry_compressionmethod(resource $zip_entry): string|false

返回由函数zip_entry确定的目录实体的压缩方法。

参数

zip_entry

由函数zip_read() 返回的目录实体。

返回值

压缩方法, 或者在失败时返回 false

更新日志

版本 说明
8.0.0 弃用此函数,取而代之的是对象 API,请参阅 ZipArchive::statIndex()

参见

add a note

User Contributed Notes

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