Home > PHP > Function > Zip > zip_entry_read()

zip_entry_read()

zip_entry_read - Read from an open directory entry

Syntax

string zip_entry_read (resource $zip_entry, int $length)

Arguments

  • zip_entry - A directory entry returned by zip_read().
  • length - The number of bytes to return. If not specified, this function will attempt to read 1024 bytes. Note: This should be the uncompressed length you wish to read.

Description

Reads from an open directory entry.

Version

PHP 4.1.0, 5.2.0, PECL zip >= 1.0.0

Return value

Returns the data read, or FALSE if the end of the file is reached.