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, 24 Jun 2011

view this page in

ZipArchive::setCommentIndex

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

ZipArchive::setCommentIndexتنظیم توضیح ورودی با اندیس

Description

mixed ZipArchive::setCommentIndex ( int $index , string $comment )

تنظیم توضیح ورودی با اندیس.

Parameters

index

اندیس ورودی.

comment

محتوای توضیح.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 باز کردن آرشیو و تنظیم توضیح برای ورودی

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
$zip->setCommentIndex(2'new entry comment');
    
$zip->close();
    echo 
'ok';
} else {
    echo 
'failed';
}
?>


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 | sitemap | contact | advertising | mirror sites