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

search for in the

ZipArchive::getFromIndex> <ZipArchive::getCommentIndex
Last updated: Fri, 14 Aug 2009

view this page in

ZipArchive::getCommentName

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

ZipArchive::getCommentNameRetourne le commentaire d'une entrée en utilisant le nom de l'entrée

Description

string ZipArchive::getCommentName ( string $name [, int $flags ] )

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

Liste de paramètres

name

Nom 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->getCommentName('test/entry1.txt'));
} else {
    echo 
'échec, code:' $res;
}
?>


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

ZipArchive::getFromIndex> <ZipArchive::getCommentIndex
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites