(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.1.0)
A file archive, compressed with 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
): boolIndex value of last added entry (file or directory). Available as of PHP 8.0.0 and PECL zip 1.18.0.
Status of the Zip Archive. Available for closed archive, as of PHP 8.0.0 and PECL zip 1.18.0.
System status of the Zip Archive. Available for closed archive, as of PHP 8.0.0 and PECL zip 1.18.0.
Number of files in archive
File name in the file system
Comment for the archive