Latest web development tutorials
 

PHP zip_close() Function


< Complete PHP Zip File Reference

Definition and Usage

The zip_close() function closes a zip archive opened by the zip_open() function.

Syntax

zip_close(zip)

Parameter Description
zip Required. Specifies the zip resource to close (a zip file opened with zip_open() )

Example

<?php
$zip = zip_open("test.zip");
zip_read($zip);

// some code

zip_close($zip);
?>

< Complete PHP Zip File Reference