ZipArchive::setCommentIndexとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > ZipArchive::setCommentIndexの意味・解説 

ZipArchive::setCommentIndex

(No version information available, might be only in CVS)
ZipArchive::setCommentIndex — インデックスを使用してエントリのコメントを設定する

説明

mixed ZipArchive::setCommentIndex ( int index, string comment )
インデックスを使用して、エントリのコメントを設定します。

パラメータ

index
エントリのインデックス。
comment
コメントの内容。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例 2531. アーカイブをオープンし、エントリのコメントを設定する
<?php
$zip = new ZipArchive;
$res = $zip->open('test.zip');
if ($res === TRUE) {
   $z->setCommentIndex(2, '新しいエントリのコメント');
   $zip->close();
   echo '成功';
} else {
   echo '失敗';
}
?>




英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ZipArchive::setCommentIndex」の関連用語

ZipArchive::setCommentIndexのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ZipArchive::setCommentIndexのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS