Home >Backend Development >PHP Tutorial >zip_close() function in PHP
zip_close() function is used to close a zip file archive. zip is opened by the zip_open() function.
zip_close(zip_file)
zip_file - zip files opened with zip_open() are mentioned here. This is the file we want to close.
zip_close() function does not return anything.
<?php $zip_file = zip_open("new.zip"); zip_read($zip_file); echo "File will be closed now"; zip_close($zip); ?>
File will be closed now
The above is the detailed content of zip_close() function in PHP. For more information, please follow other related articles on the PHP Chinese website!