PHP zip_close() Function

Definition and Usage

The zip_close() function closes the zip archive file opened by the zip_open() function.

Syntax

zip_close(zip)
Parameter Description
zip Required. Specifies the zip resource to be closed (the zip file opened by zip_open()).

Example

<?php
$zip = zip_open("test.zip");
zip_read($zip);
// Some code...
zip_close($zip);
?>