downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ZipArchive::getCommentName> <ZipArchive::getArchiveComment
Last updated: Fri, 30 Oct 2009

view this page in

ZipArchive::getCommentIndex

(PHP 5 >= 5.2.0, PECL zip >= 1.4.0)

ZipArchive::getCommentIndexGibt den Kommentar zu einem Eintrag unter Verwendung des Eintragsindex zurück

Beschreibung

string ZipArchive::getCommentIndex ( int $index [, int $flags ] )

Gibt den Kommentar zu einem Eintrag unter Verwendung des Eintragsindex zurück.

Parameter-Liste

index

Index des Eintrags.

flags

Wenn das Flag auf ZIPARCHIVE::FL_UNCHANGED gesetzt ist, wird der originale Kommentar unverändert zurückgegeben.

Rückgabewerte

Gibt bei Erfolg den Kommentar oder im Fehlerfalle FALSE zurück.

Beispiele

Beispiel #1 Einen Eintragskommentar ausgeben

<?php
$zip 
= new ZipArchive;
$res $zip->open('test1.zip');
if (
$res === TRUE) {
    
var_dump($zip->getCommentIndex(1));
} else {
    echo 
'Fehler, Code:' $res;
}
?>


add a note add a note User Contributed Notes
ZipArchive::getCommentIndex
There are no user contributed notes for this page.

ZipArchive::getCommentName> <ZipArchive::getArchiveComment
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites