php 读取zip/rar压缩包注释

$za = new ZipArchive();
$za->open('0816.tmt');
$comment = $za->getArchiveComment();
//如果需要转字符串编码
$comment= iconv("gbk","UTF-8",$comment);
点赞