Home >Backend Development >PHP Tutorial >zip_close() function in PHP

zip_close() function in PHP

王林
王林forward
2023-08-28 15:33:10925browse

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)

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 H2>
<?php
   $zip_file = zip_open("new.zip");
   zip_read($zip_file);
   echo "File will be closed now";
   zip_close($zip);
?>

Output

File will be closed now

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete