PHP zip_read() 函数

PHP 教程 · 2019-01-31 06:12:04

定义和用法

zip_read() 函数读取打开的 zip 档案中的下一个文件。

如果成功,该函数则返回包含 zip 档案中一个文件的资源。如果没有更多的项目可供读取,则返回 FALSE。

语法


zip_read(zip)


参数 描述
zip 必需。规定要读取的 zip 资源(由 zip_open() 打开的 zip 文件)。

提示和注释

提示:由 zip_read() 返回的资源可供 zip_entry... 类的函数使用。

实例


<?php
$zip = zip_open("test.zip");
zip_read($zip);
// some code
zip_close($zip);
?>


点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

Pattern Recognition and Machine Learning

Pattern Recognition and Machine Learning

Christopher Bishop / Springer / 2007-10-1 / USD 94.95

The dramatic growth in practical applications for machine learning over the last ten years has been accompanied by many important developments in the underlying algorithms and techniques. For example,......一起来看看 《Pattern Recognition and Machine Learning》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码