ZipArchive::setArchiveComment Set the comment of a ZIP archive &reftitle.description; mixedZipArchive::setArchiveComment stringcomment Set the comment of a ZIP archive. &reftitle.parameters; comment The contents of the comment. &reftitle.returnvalues; &return.success; &reftitle.examples; Create an archive and set a comment open('test.zip', ZipArchive::CREATE); if ($res === TRUE) { $zip->addFromString('test.txt', 'file content goes here'); $z->setArchiveComment('new archive comment'); $zip->close(); echo 'ok'; } else { echo 'failed'; } ?> ]]>