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

ZipArchive::setCommentIndex()

ZipArchive::setCommentIndex - Set the comment of an entry defined by its index

Syntax

mixed ZipArchive::setCommentIndex (int $index, string $comment)

Arguments

  • index - Index of the entry.
  • comment - The contents of the comment.

Description

Set the comment of an entry defined by its index.

Version

PHP 5.2.0, PECL zip >= 1.4.0

Return value

Returns TRUE on success or FALSE on failure.