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

search for in the

ZipArchive::getCommentIndex> <ZipArchive::extractTo
Last updated: Fri, 30 Oct 2009

view this page in

ZipArchive::getArchiveComment

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

ZipArchive::getArchiveCommentGibt den ZIP-Archiv-Kommentar zurück

Beschreibung

string ZipArchive::getArchiveComment ( void )

Gibt den ZIP-Archiv-Kommentar zurück.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

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

Beispiele

Beispiel #1 Einen Archivkommentar ausgeben

<?php
$zip 
= new ZipArchive;
$res $zip->open('test_with_comment.zip');
if (
$res === TRUE) {
    
var_dump($zip->getArchiveComment());
    
/* Oder die Archiveigenschaft verwenden */
    
var_dump($zip->comment);
} else {
    echo 
'Fehler, Code:' $res;
}
?>


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

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