PHP中的zip_close()函数
zip_close()函数用于关闭zip文件存档。zip是通过zip_open()函数打开的。
语法
zip_close(zip_file)
参数
zip_file-这里将提到使用zip_open()打开的zip文件。这是我们要关闭的文件。
返回
zip_close()函数不返回任何内容。
示例
<?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