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

ZipArchive::statIndex()

ZipArchive::statIndex - Get the details of an entry defined by its index.

Syntax

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

Arguments

  • index - Index of the entry
  • flags - ZIPARCHIVE::FL_UNCHANGED may be ORed to it to request information about the original file in the archive, ignoring any changes made.

Description

The function obtains information about the entry defined by its index.

Version

PHP 5.2.0, PECL zip >= 1.1.0

Return value

Returns an array containing the entry details or FALSE on failure.