Home > PHP > Function > > ZipArchive::getFromIndex()

ZipArchive::getFromIndex()

ZipArchive::getFromIndex - Returns the entry contents using its index

Syntax

mixed ZipArchive::getFromIndex (int $index, int $flags)

Arguments

  • index - Index of the entry
  • flags - The flags to use to open the archive. the following values may be ORed to it. ZIPARCHIVE::FL_UNCHANGED ZIPARCHIVE::FL_COMPRESSED

Description

Returns the entry contents using its index.

Version

PHP 5.2.0, PECL zip >= 1.3.0

Return value

Returns the contents of the entry on success or FALSE on failure.