(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.1.0)
用 Zip 压缩的文件归档。
$filepath,$entryname = "",$start = 0,$length = ZipArchive::LENGTH_TO_END,$flags = ZipArchive::FL_OVERWRITE$filepath,$index,$start = 0,$length = ZipArchive::LENGTH_TO_END,$flags = 0$index, int $method, #[\SensitiveParameter] ?string $password = null): bool$name, int $method, #[\SensitiveParameter] ?string $password = null): bool最后新增的条目(文件或目录)索引值。 从 PHP 8.0.0 和 PECL zip 1.18.0 开始可用。
Zip 归档的状态。从 PHP 8.0.0 和 PECL zip 1.18.0 开始,可用于关闭归档。
Zip 归档的系统状态。从 PHP 8.0.0 和 PECL zip 1.18.0 开始,可用于关闭归档。
归档里的文件数
在文件系统里的文件名
归档里的注释