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://codercto.com/courses/l/5.html
The Java Language Specification, Java SE 7 Edition
James Gosling、Bill Joy、Guy L. Steele Jr.、Gilad Bracha、Alex Buckley / Addison-Wesley Professional / 2013-2-24 / USD 59.99
Written by the inventors of the technology, The Java(r) Language Specification, Java SE 7 Edition, is the definitive technical reference for the Java programming language. The book provides complete, ......一起来看看 《The Java Language Specification, Java SE 7 Edition》 这本书的介绍吧!