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, 14 Aug 2009

view this page in

ZipArchive::getArchiveComment

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

ZipArchive::getArchiveCommentRetourne le commentaire de l'archive ZIP

Description

string ZipArchive::getArchiveComment ( void )

Retourne le commentaire de l'archive ZIP.

Valeurs de retour

Retourne le commentaire de l'archive ZIP ou FALSE si une erreur survient.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Exemples

Exemple #1 Extrait le commentaire de l'archive

<?php
$zip 
= new ZipArchive;
$res $zip->open('test_avec_commentaire.zip');
if (
$res === TRUE) {
    
var_dump($zip->getArchiveComment());
    
/* Ou en utilisant la propriété de l'archive */
    
var_dump($zip->comment);
} else {
    echo 
'échec, 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, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites