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

ZipArchive::getCommentIndex()

ZipArchive::getCommentIndex - Returns the comment of an entry using the entry index

Syntax

string ZipArchive::getCommentIndex (int $index, int $flags)

Arguments

  • index - Index of the entry
  • flags - If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged comment is returned.

Description

Returns the comment of an entry using the entry index.

Version

PHP 5.2.0, PECL zip >= 1.4.0

Return value

Returns the comment on success or FALSE on failure.