(PECL rar >= 0.1)
RarEntry::getUnpackedSize — 取得項目的未壓縮大小
此函式沒有參數。
回傳未壓縮的大小,或發生錯誤時回傳 false
。
範例 #1 RarEntry::getUnpackedSize() 範例
<?php
$rar_file = rar_open('example.rar') or die("無法開啟 Rar 壓縮檔");
$entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("找不到此項目");
echo "「" . $entry->getName() . "」的解壓縮大小 = " . $entry->getUnpackedSize() . " 位元組";
?>