Home > PHP > Function > Zip > zip_read()

zip_read()

zip_read - Read next entry in a ZIP file archive

Syntax

mixed zip_read (resource $zip)

Arguments

  • zip - A ZIP file previously opened with zip_open().

Description

Reads the next entry in a zip file archive.

Version

PHP 4.1.0, 5.2.0, PECL zip >= 1.0.0

Return value

Returns a directory entry resource for later use with the zip_entry_...functions or FALSE if there's no more entries to read or number of error in case of other error.