How to use zip close in PHP
In this article I am going to explain about zip_close function in PHP.
PHP zip_close() Function
The PHP zip_close function is used to close the zip file archive.
Syntax of zip_close function
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:
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