3copy(
'test_with_comment.zip',
't.zip');
9for ($i=0; $i<
$z->numFiles; $i++) {
14echo
"foobar/ " .
$z->getCommentName(
'foobar/') .
"\n";
16echo
"Archive comment: " .
$z->getArchiveComment() .
"\n";
19$z->setCommentIndex(1,
'new comment idx 1');
20$z->setCommentName(
'foobar/',
'new comment foobar/');
22$z->setArchiveComment(
'new archive comment');
24for ($i=0; $i<
$z->numFiles; $i++) {
30echo
$z->getCommentName(
'foobar/') .
"\n";
33echo
$z->getCommentName(
'foobar/', ZIPARCHIVE::FL_UNCHANGED) .
"\n";
35echo
"Archive comment: " .
$z->getArchiveComment() .
"\n";
36echo
"Archive comment (original): " .
$z->getArchiveComment(ZIPARCHIVE::FL_UNCHANGED) .
"\n";
copy(string $from, string $to, $context=null)
print_r(mixed $value, bool $return=false)