PHP zip_read()Functions


PHP Zip File 参考手册Complete PHP Zip File Reference Manual

Definition and Usage

The zip_read() function reads the next file in an open zip archive.

If successful, the function returns a resource containing a file in the zip archive. If there are no more items to read, it returns FALSE.

Syntax

zip_read(zip)

Parameters Description
zip Required. Specifies the zip resource to be read (the zip file opened by zip_open()).


Tips and Notes

Tip:The resource returned by zip_read() can be used by functions of the zip_entry... type.


Examples

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

zip_read($zip);

// some code

zip_close($zip);
?>


PHP Zip File 参考手册Complete PHP Zip File Reference Manual Other Extensions