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
[edit] Last updated: Fri, 25 May 2012

view this page in

ZipArchive::getCommentIndex

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

ZipArchive::getCommentIndexRetourne le commentaire d'une entrée

Description

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

Retourne le commentaire d'une entrée en utilisant l'index de l'entrée.

Liste de paramètres

index

Index de l'entrée

flags

Si ce flag est défini à ZIPARCHIVE::FL_UNCHANGED, le commentaire original est retourné.

Valeurs de retour

Retourne le commentaire en cas de succès ou FALSE si une erreur survient.

Exemples

Exemple #1 Affiche le commentaire d'une entrée

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


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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites