zip_entry_compressionmethod
zipファイル内のアイテムの圧縮方法を返します。
zip_entry_compressionmethod()
関数は、zipアーカイブアイテムの圧縮方法を返します。
<?php $ zip = zip_open ( "test.zip" ) ; if ( $ zip ) { while ( $ zip_entry = zip_read ( $ zip ) ) { echo "<p>" ; echo "name:" 。 zip_entry_name ( $ zip_entry ) 。 "<br />" ; エコー「圧縮法:」 。 zip_entry_compressionmethod ( $ zip_entry ) ; echo "</p>" ; } zip_close ( $ zip ) ; } ?>
输出:
名前:ziptest.txt 圧縮方法:デフレ 名前:htmlziptest.html 圧縮方法:デフレ
zip_entry_compressionmethod ( zip_entry )
パラメーター | 説明する |
---|---|
zip_entry | 必須。読み取るZIPプロジェクトリソースを指定します(ZIP_READ()によって開かれたZIPプロジェクト)。 |