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

search for in the

ZipArchive::deleteName> <ZipArchive::close
[edit] Last updated: Fri, 25 May 2012

view this page in

ZipArchive::deleteIndex

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

ZipArchive::deleteIndexインデックスを使用して、アーカイブ内のエントリを削除する

説明

bool ZipArchive::deleteIndex ( int $index )

インデックスをもとにして、アーカイブ内のエントリを削除します。

パラメータ

index

削除するエントリのインデックス。

返り値

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

例1 インデックスを使用した、アーカイブからのファイルの削除

<?php
$zip 
= new ZipArchive;
if (
$zip->open('test.zip') === TRUE) {
    
$zip->deleteIndex(2);
    
$zip->close();
    echo 
'成功';
} else {
    echo 
'失敗';
}
?>


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

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