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

查看所有标签

jQuery

jQuery

Earle Castledine、Craig Sharkie / SitePoint / 2010-02-28 / USD 39.95

jQuery: Novice to Ninja is a compilation of best-practice jQuery solutions to meet the most challenging JavaScript problems. In this question-and-answer book on jQuery, you'll find a cookbook of ready......一起来看看 《jQuery》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具