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

search for in the

ZipArchive::setCommentName> <ZipArchive::setArchiveComment
[edit] Last updated: Fri, 17 May 2013

view this page in

ZipArchive::setCommentIndex

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

ZipArchive::setCommentIndexİndisi belirtilen girdiye bir açıklama ekler

Açıklama

mixed ZipArchive::setCommentIndex ( int $indis , string $açıklama )

İndisi belirtilen girdiye bir açıklama ekler.

Değiştirgeler

indis

Girdi indisi.

açıklama

Açıklamanın içeriği.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Örnekler

Örnek 1 Bir arşiv açıp bir girdiye açıklama eklemek

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
$zip->setCommentIndex(2'yeni girdi açıklaması');
    
$zip->close();
    echo 
'Tamam';
} else {
    echo 
'Olmadı';
}
?>


add a note add a note User Contributed Notes ZipArchive::setCommentIndex - [0 notes]
There are no user contributed notes for this page.

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