zip_close

Close a ZIP file archive

Warning

This function has been DEPRECATED as of PHP 8.0.0. Relying on this function is highly discouraged.

Description

void zip_close(resource $zip)

Closes the given ZIP file archive.

Parameters

zip

A ZIP file previously opened with zip_open.

Return Values

No value is returned.

Changelog

Version Description
8.0.0 This function is deprecated in favor of the Object API, see ZipArchive::close.

See Also

  • zip_open
  • zip_read