English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The zip_close() function is used to close the zip file archive. It is opened through the zip_open() function.
zip_close(zip_file)
zip_file-Here, we will mention the zip file opened using zip_open(). This is the file we are going to close.
The zip_close() function does not return any content.
<?php $zip_file = zip_open("new.zip"); zip_read($zip_file); echo "File will be closed now"; zip_close($zip); ?>
Output Result
File will be closed now