PHP zip_entry_compressedsize() 函数
PHP 教程
· 2019-01-30 22:29:27
定义和用法
zip_entry_compressedsize() 函数返回 zip 档案项目的压缩文件尺寸。
语法
zip_entry_compressedsize(zip_entry)
| 参数 | 描述 |
|---|---|
| zip_entry | 必需。规定要读取的 zip 项目资源(由 zip_read() 打开的 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 />";
echo "Compressed Size: "
. zip_entry_compressedsize($zip_entry);
echo "</p>";
}
zip_close($zip);
}
?>
上面的代码将输出:
Name: ziptest.txt Compressed Size: 56 Name: htmlziptest.html Compressed Size: 101
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
The Art of Computer Programming, Volume 4, Fascicle 3
Donald E. Knuth / Addison-Wesley Professional / 2005-08-05 / USD 19.99
Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 4, Fascicle 3》 这本书的介绍吧!