zip_close() function in PHP

王林
Release: 2023-08-28 15:34:01
forward
903 people have browsed it

zip_close() function in PHP

zip_close() function is used to close a zip file archive. zip is opened by the zip_open() function.

Syntax

zip_close(zip_file)
Copy after login

Parameters

  • zip_file - zip files opened with zip_open() are mentioned here. This is the file we want to close.

Return

zip_close() function does not return anything.

Example
<?php
   $zip_file = zip_open("new.zip");
   zip_read($zip_file);
   echo "File will be closed now";
   zip_close($zip);
?>
Copy after login

Output

File will be closed now
Copy after login

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!