PHP zip_read() Function
Definition and Usage
The zip_read() function reads the next file in the opened zip archive.
If successful, returns a resource containing a file from the zip archive. If there are no more items to read, returns false.
Syntax
zip_read(zip)
Parameter | Description |
---|---|
zip | Required. Specifies the zip resource to be read (the zip file opened by zip_open()). |
Tips and Comments
Tip:The resource returned by the zip_read() function can be used by the functions of the zip_entry... class.
Example
<?php $zip = zip_open("test.zip"); zip_read($zip); // Some code... zip_close($zip); ?>