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

ZipArchive::setCommentName()

ZipArchive::setCommentName - Set the comment of an entry defined by its name

Syntax

mixed ZipArchive::setCommentName (string $name, string $comment)

Arguments

  • name - Name of the entry.
  • comment - The contents of the comment.

Description

Set the comment of an entry defined by its name.

Version

PHP 5.2.0, PECL zip >= 1.4.0

Return value

Returns TRUE on success or FALSE on failure.