ZipArchive::getExternalAttributesIndex

(PHP 5 >= 5.6.0, PHP 7, PECL zip >= 1.12.4) Retrieve the external attributes of an entry defined by its index bool ZipArchive::GetExternalAttributesIndex ( int $index, int &$opsys, int &$attr [, int $flags ] ) Retrieve the external attributes of an entry defined by its index. Parameters: index Index of the entry. opsys On

ZipArchive::getCommentName

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.4.0) Returns the comment of an entry using the entry name string ZipArchive::getCommentName ( string $name [, int $flags ] ) Returns the comment of an entry using the entry name. Parameters: name Name of the entry flags If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged commen

ZipArchive::getCommentIndex

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.4.0) Returns the comment of an entry using the entry index string ZipArchive::getCommentIndex ( int $index [, int $flags ] ) Returns the comment of an entry using the entry index. Parameters: index Index of the entry flags If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged com

ZipArchive::getArchiveComment

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Returns the Zip archive comment string ZipArchive::getArchiveComment ([ int $flags ] ) Returns the Zip archive comment. Parameters: flags If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged comment is returned. Returns: Returns the Zip archive comment or FALSE on failure.

ZipArchive::extractTo

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Extract the archive contents bool ZipArchive::extractTo ( string $destination [, mixed $entries ] ) Extract the complete archive or the given files to the specified destination. Parameters: destination Location where to extract the files. entries The entries to extract. It accepts either

ZipArchive::deleteName

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.5.0) delete an entry in the archive using its name bool ZipArchive::deleteName ( string $name ) Delete an entry in the archive using its name. Parameters: name Name of the entry to delete. Returns: Returns TRUE on success or FALSE on failure. Examples:

ZipArchive::deleteIndex

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.5.0) delete an entry in the archive using its index bool ZipArchive::deleteIndex ( int $index ) Delete an entry in the archive using its index. Parameters: index Index of the entry to delete. Returns: Returns TRUE on success or FALSE on failure. Examples

ZipArchive::close

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Close the active archive (opened or newly created) bool ZipArchive::close ( void ) Close opened or created archive and save changes. This method is automatically called at the end of the script. Returns: Returns TRUE on success or FALSE on failure.

ZipArchive::addPattern

(PHP 5 >= 5.3.0, PHP 7, PECL zip >= 1.9.0) Add files from a directory by PCRE pattern bool ZipArchive::addPattern ( string $pattern [, string $path = "." [, array $options = array() ]] ) Add files from a directory which match the regular expression pattern. The operation is not recursive. The pattern will be matched against the file name only. Parameters: pattern

ZipArchive::addGlob

(PHP 5 >= 5.3.0, PHP 7, PECL zip >= 1.9.0) Add files from a directory by glob pattern bool ZipArchive::addGlob ( string $pattern [, int $flags = 0 [, array $options = array() ]] ) Add files from a directory which match the glob pattern. Parameters: pattern A glob() pattern against which files will be matched. flags A bit mask of