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

查看所有标签

Coming of Age in Second Life

Coming of Age in Second Life

Tom Boellstorff / Princeton University Press / 2008-04-21 / USD 29.95

The gap between the virtual and the physical, and its effect on the ideas of personhood and relationships, is the most interesting aspect of Boellstorff's analysis... Boellstorff's portrayal of a virt......一起来看看 《Coming of Age in Second Life》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

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

HEX HSV 互换工具