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

ZipArchive::getCommentName()

ZipArchive::getCommentName - Returns the comment of an entry using the entry name

Syntax

string ZipArchive::getCommentName (string $name, int $flags)

Arguments

  • name - Name 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 name.

Version

PHP 5.2.0, PECL zip >= 1.4.0

Return value

Returns the comment on success or FALSE on failure.