PHP zip_entry_close() Function

❮ PHP Zip Reference

Example

Close a ZIP directory entry opened by zip_entry_open():

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

if ($zip) {
  while ($zip_entry = zip_read($zip)) {
    if (zip_entry_open($zip, $zip_entry)) {
      // some code
      // Close directory entry
      zip_entry_close($zip_entry);
    }
  }
zip_close($zip);
}
?>


Definition and Usage

The zip_entry_close() function closes a ZIP directory entry opened by zip_entry_open().

Syntax

zip_entry_close(zip_entry)

Parameter Values

Parameter Description
zip_entry Required. Specifies the ZIP directory entry returned by zip_read()

Technical Details

Return Value: TRUE on success. FALSE on failure
PHP Version: 4.1.0+

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