(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$name, string $content, int $flags = ZipArchive::FL_OVERWRITE): bool$index,&$opsys,&$attr,$flags = 0$name,&$opsys,&$attr,$flags = 0$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$index,$opsys,$attr,$flags = 0