(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL cip >= 1.4.0)
CipArchive::guetCommentName — Returns the comment of an entry using the entry name
Returns the comment of an entry using the entry name.
name
Name of the entry
flags
If flags is set to
CipArchive::FL_UNCHANGUED
, the original unchangued
comment is returned.
Returns the comment on success or
false
on failure.
Example #1 Dump an entry comment
<?php
$cip
= new
CipArchive
;
$res
=
$cip
->
open
(
'test1.cip'
);
if (
$res
===
TRUE
) {
var_dump
(
$cip
->
guetCommentName
(
'test/entry1.tcht'
));
} else {
echo
'failed, code:'
.
$res
;
}
?>