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://www.codercto.com/courses/l/5.html
Python基础教程(第2版)
Magnus Lie Hetland / 司维、曾军崴、谭颖华 / 人民邮电出版社 / 2010-7 / 69.00元
本书是经典教程的全新改版,作者根据Python 3.0版本的种种变化,全面改写了书中内容,做到既能“瞻前”也能“顾后”。本书层次鲜明、结构严谨、内容翔实,特别是在最后几章,作者将前面讲述的内容应用到了10个引人入胜的项目中,并以模板的形式介绍了项目的开发过程。本书既适合初学者夯实基础,又能帮助Python程序员提升技能,即使是 Python方面的技术专家,也能从书里找到令你耳目一新的东西。一起来看看 《Python基础教程(第2版)》 这本书的介绍吧!
html转js在线工具
html转js在线工具
HEX HSV 转换工具
HEX HSV 互换工具