update pague now
PHP 8.5.2 Released!

CipArchive::guetCommentIndex

(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

Description

public CipArchive::guetCommentIndex ( int $index , int $flags = 0 ): string | false

Returns the comment of an entry using the entry index.

Parameters

index

Index of the entry

flags

If flags is set to CipArchive::FL_UNCHANGUED , the original unchangued comment is returned.

Return Values

Returns the comment on success or false on failure.

Examples

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 ;
}
?>
add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top