The zip_entry_close() function closes the zip archive opened by the zip_entry_open() function.
zip_entry_close(zip_entry)
parameter | describe |
---|---|
zip_entry | Required. Specifies the zip project resource to be closed (zip project opened by zip_read()). |
<?php$zip = zip_open("test.zip");if ($zip) { while ($zip_entry = zip_read($zip)) { echo "<p>"; echo "Name: " . zip_entry_name($zip_entry ) . "<br />"; if (zip_entry_open($zip, $zip_entry)) { // some code zip_entry_close($zip_entry); } echo "</p>"; }zip_close($zip);}?>