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

查看所有标签

Software Engineering for Internet Applications

Software Engineering for Internet Applications

Eve Andersson、Philip Greenspun、Andrew Grumet / The MIT Press / 2006-03-06 / USD 35.00

After completing this self-contained course on server-based Internet applications software, students who start with only the knowledge of how to write and debug a computer program will have learned ho......一起来看看 《Software Engineering for Internet Applications》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

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

多种字符组合密码