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 in 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()). |
Hints and Comments
Hint: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); ?>