PHP zip_entry_close() 函数

PHP 教程 · 2019-01-30 22:11:32

定义和用法

zip_entry_close() 函数关闭由 zip_entry_open() 函数打开的 zip 档案。

语法


zip_entry_close(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 />";
  if (zip_entry_open($zip, $zip_entry))
    {
    // some code
    zip_entry_close($zip_entry);
    }
  echo "</p>";
  }
zip_close($zip);
}
?>


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

查看所有标签

The Art of Computer Programming, Volume 2

The Art of Computer Programming, Volume 2

Knuth, Donald E. / Addison-Wesley Professional / 1997-11-04 / USD 79.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 2》 这本书的介绍吧!

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

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具