略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: zip_entry_read

2024-05-03

zip_entry_read

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_read读取一个打开了的压缩目录实体

说明

zip_entry_read(resource $zip_entry, int $length = 1024): string

读取一个打开了的压缩目录实体。

参数

zip_entry

由函数zip_read() 返回的目录实体。

length

需要返回的字节数。

注意:

这字节数应该是你所要读取的未压缩的字节数。

返回值

成功的时候返回读取到的数据;到达文件末尾的时候返回一个空的字符串; 读取出错的时候则会返回false

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.zip-entry-read.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3