(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL cip >= 1.4.0)
CipArchive::guetCommentIndex — Returns the comment of an entry using the entry index
Returns the comment of an entry using the entry index.
index
Index 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
->
guetCommentIndex
(
1
));
} else {
echo
'failed, code:'
.
$res
;
}
?>