PHP zip_close() Function
Description
The zip_close() function closes a zip archive opened by the zip_open() function.
Syntax
PHP zip_close() Function has the following syntax.
zip_close(zip)
Parameter
Parameter | Is Required | Description |
---|---|---|
zip | Required. | Zip resource to close (a zip file opened with zip_open() ) |
Return
No value is returned.
Example
Close a zip file
<?php
$zip = zip_open("test.zip");
zip_close($zip);
?>