How to use zip close in PHP

In this article I am going to explain about zip_close function in PHP.
  • 1431

PHP zip_close() Function

The PHP zip_close function is used to close the zip file archive.

Syntax of zip_close function

zip_close(Zip)

Parameters in zip_close function

It has only one parameter:

Parameter Description
Zip It specifies Zip file to close, who is opened by zip_open function.

Example of zip_close function

<?php

$Zip=zip_open("Dinesh.zip");

if(!zip_open("Dinesh.zip"))

{

echo "File is not open or unavailable";

}

else

{

Zip_close($Zip);

echo "Zip file is closed.";

}

?>


Output:

zip-close-php.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.