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

search for in the

ZipArchive::getCommentName> <ZipArchive::getArchiveComment
Last updated: Fri, 10 Oct 2008

view this page in

ZipArchive::getCommentIndex

(No version information available, might be only in CVS)

ZipArchive::getCommentIndexエントリのインデックスを使用して、エントリのコメントを返す

説明

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

エントリのインデックスを使用して、エントリのコメントを返します。

パラメータ

index

エントリのインデックス。

flags

ZIPARCHIVE::FL_UNCHANGED を指定すると、 元の変化していないコメントが返されます。

返り値

成功した場合にコメント、失敗した場合に FALSE を返します。

例1 エントリのコメントの出力

<?php
$zip 
= new ZipArchive;
$res $zip->open('test1.zip')
if (
$res === TRUE) {
    
var_dump($zip->getCommentIndex(1));
} else {
    echo 
'失敗、コード:' $res;
}
?>


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

ZipArchive::getCommentName> <ZipArchive::getArchiveComment
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites