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

view this page in

ZipArchive::getCommentName

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

ZipArchive::getCommentNameİsmi belirtilen girdinin açıklamasını döndürür

Açıklama

string ZipArchive::getCommentName ( string $isim [, int $seçenekler ] )

İsmi belirtilen girdinin açıklamasını döndürür.

Değiştirgeler

isim

Girdinin ismi.

seçenekler

Değer olarak ZIPARCHIVE::FL_UNCHANGED belirtilirse özgün açıklama döner.

Dönen Değerler

Başarısızlık durumunda FALSE aksi takdirde açıklama dizgesi döner.

Örnekler

Örnek 1 - Bir girdinin açıklamasını basmak

<?php
$zip 
= new ZipArchive;
$res $zip->open('test1.zip');
if (
$res === TRUE) {
    
var_dump($zip->getCommentName('test/entry1.txt'));
} else {
    echo 
'olmadı, kod:' $res;
}
?>


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

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