PHP zip_read() Function
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_read() function reads the next file in a open ZIP file archive.
Tip: The resource returned by zip_read() can be used by the zip_entry_*() functions.
Syntax
zip_read(zip)
Parameter Values
Parameter | Description |
---|---|
zip | Required. Specifies a ZIP file opened with zip_open() |
Technical Details
Return Value: | A resource containing a file within the ZIP archive on success. FALSE if there is no more entries to read or on failure |
---|---|
PHP Version: | 4.1.0+ |
❮ PHP Zip Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.