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

search for in the

ZipArchive::extractTo> <ZipArchive::deleteIndex
Last updated: Fri, 13 Nov 2009

view this page in

ZipArchive::deleteName

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

ZipArchive::deleteName名前を使用して、アーカイブからエントリを削除する

説明

bool ZipArchive::deleteName ( string $name )

名前をもとにして、アーカイブ内のエントリを削除します。

パラメータ

name

削除するエントリの名前。

返り値

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

例1 名前を使用した、アーカイブからのファイルの削除

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


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

ZipArchive::extractTo> <ZipArchive::deleteIndex
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites