English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

zip_close() function in PHP

The zip_close() function is used to close the zip file archive. It is opened through the zip_open() function.

Syntax

zip_close(zip_file)

Parameter

  • zip_file-Here, we will mention the zip file opened using zip_open(). This is the file we are going to close.

Return

The zip_close() function does not return any content.

Example

<?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