PHP zip_read() Function

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

resource zip_read ( resource $zip )

Reads the next entry in a zip file archive.

This function returns a resource containing a file within the zip archive on success, or FALSE if there is no more entries to read.

Example -

zipA ZIP file previously opened with zip_open().

Return Values-

Returns a directory entry resource for later use with the zip_entry_... functions, or FALSE if there are no more entries to read, or an error code if an error occurred.