zip_entry_compressed_size() 函數返回 zip 存檔條目的壓縮文件大小。
用法
zip_entry_compressed_size(zip_entry)
參數
zip_entry− zip 條目資源。必需的。
返回
zip_entry_compressed_size() 函數返回 zip 存檔條目的壓縮文件大小。
以下是獲取 "new.zip" 存檔中文件大小的示例。
示例
<?php
$zip = zip_open("new.zip");
if ($zip) {
while ($zip_entry = zip_read($zip)) {
echo "Compressed = ". zip_entry_compressedsize($zip_entry). "<br />";
}
zip_close($zip);
}
?>
輸出
Compressed:90 Compressed:12 Compressed:67
相關用法
- PHP zip_entry_compressedsize()用法及代碼示例
- PHP zip_entry_compressionmethod()用法及代碼示例
- PHP zip_entry_close()用法及代碼示例
- PHP zip_entry_name()用法及代碼示例
- PHP zip_entry_filesize()用法及代碼示例
- PHP zip_entry_open()用法及代碼示例
- PHP zip_entry_read()用法及代碼示例
- PHP zip_open()用法及代碼示例
- PHP zip_read()用法及代碼示例
- PHP zip_close( )用法及代碼示例
- PHP PHPUnit assertIsNotFloat()用法及代碼示例
- PHP disk_total_space()用法及代碼示例
- PHP ReflectionClass getTraitAliases()用法及代碼示例
- PHP hash_hmac()用法及代碼示例
- PHP String wordwrap()用法及代碼示例
- PHP SimpleXMLElement children()用法及代碼示例
- PHP is_file( )用法及代碼示例
- PHP ArrayIterator asort()用法及代碼示例
注:本文由純淨天空篩選整理自Samual Sam大神的英文原創作品 zip_entry_compressed_size() function in PHP。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。