xref: /PHP-7.0/ext/zip/examples/comment.php (revision 664d102a)
1<?php
2$z = new ZipArchive;
3$z->open('test_with_comment.zip');
4// Add "Foo Comment" as comment for the foo entry
5$z->setCommentName('foo', 'Too Comment ' . time());
6$z->close();
7