The zip_read() function reads the next file in an open zip archive.
If successful, the function returns the resource containing a file in the zip archive. Returns FALSE if there are no more items to read.
zip_read(zip)
parameter | describe |
---|---|
zip | Required. Specifies the zip resource to be read (zip file opened by zip_open()). |
Tip: The resources returned by zip_read() can be used by functions of the zip_entry... class.
<?php$zip = zip_open("test.zip");zip_read($zip);// some codezip_close($zip);?>