PHP zip_entry_compressionmethod() 函数
PHP 教程
· 2019-01-30 22:44:12
定义和用法
The zip_entry_compressionmethod() 函数返回 zip 档案项目的压缩方法。
语法
zip_entry_compressionmethod(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 "Compression Method: "
. zip_entry_compressionmethod($zip_entry);
echo "</p>";
}
zip_close($zip);
}
?>
上面的代码将输出:
Name: ziptest.txt Compression Method: deflated Name: htmlziptest.html Compression Method: deflated
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Designing Data-Intensive Applications
Martin Kleppmann / O'Reilly Media / 2017-4-2 / USD 44.99
Data is at the center of many challenges in system design today. Difficult issues need to be figured out, such as scalability, consistency, reliability, efficiency, and maintainability. In addition, w......一起来看看 《Designing Data-Intensive Applications》 这本书的介绍吧!