PHP zip_close() Function

Description

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

Syntax

PHP zip_close() Function has the following syntax.

zip_close(zip)

Parameter

ParameterIs RequiredDescription
zipRequired.Zip resource to close (a zip file opened with zip_open() )

Return

No value is returned.

Example

Close a zip file


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




















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions