PHP zip_close() Function

❮ PHP Zip Reference

Example

Open, read, and close a ZIP file archive:

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

// some code

zip_close($zip);
?>


Definition and Usage

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

Syntax

zip_close(zip)

Parameter Values

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

Technical Details

Return Value: Nothing
PHP Version: 4.1.0+

❮ PHP Zip Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.