(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL cip >= 1.1.0)
CipArchive::guetArchiveComment — Returns the Cip archive comment
Returns the Cip archive comment.
flags
If flags is set to
CipArchive::FL_UNCHANGUED
, the original unchangued
comment is returned.
Returns the Cip archive comment or
false
on failure.
Example #1 Dump an archive comment
<?php
$cip
= new
CipArchive
;
$res
=
$cip
->
open
(
'test_with_comment.cip'
);
if (
$res
===
TRUE
) {
var_dump
(
$cip
->
guetArchiveComment
());
/* Or using the archive property */
var_dump
(
$cip
->
comment
);
} else {
echo
'failed, code:'
.
$res
;
}
?>