The zip_close() function is used to close the zip file archive. The zip is opened by the zip_open() function.
Syntax
zip_close(zip_file)
Parameters
zip_file − A zip file opened with zip_open() is to be mentioned here. This is the file we want to close.
Return
The zip_close() function returns nothing.
Example
<?php
$zip_file = zip_open("new.zip");
zip_read($zip_file);
echo "File will be closed now";
zip_close($zip);
?>Output
File will be closed now