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
精通Git(第2版)
Scott Chacon、Ben Straub / 门佳、刘梓懿 / 人民邮电出版社 / 2017-9 / 89.00元
Git 仅用了几年时间就一跃成为了几乎一统商业及开源领域的版本控制系统。本书全面介绍Git 进行版本管理的基础和进阶知识。全书共10 章,内容由浅入深,展现了普通程序员和项目经理如何有效利用Git提高工作效率,掌握分支概念,灵活地将Git 用于服务器和分布式工作流,如何将开发项目迁移到Git,以及如何高效利用GitHub。一起来看看 《精通Git(第2版)》 这本书的介绍吧!
URL 编码/解码
URL 编码/解码
RGB HSV 转换
RGB HSV 互转工具