ZipArchive::getCommentIndex
Returns the comment of an entry using the entry index
&reftitle.description;
stringZipArchive::getCommentIndex
intindex
intflags
Returns the comment of an entry using the entry index.
&reftitle.parameters;
index
Index of the entry
flags
If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged
comment is returned.
&reftitle.returnvalues;
Returns the comment on success or &false; on failure.
&reftitle.examples;
Dump an entry comment
open('test1.zip')
if ($res === TRUE) {
var_dump($zip->getCommentIndex(1));
} else {
echo 'failed, code:' . $res;
}
?>
]]>