PHP zip_entry_name() 函数

PHP 教程 · 2019-01-30 23:12:26

定义和用法

zip_entry_name() 函数返回 zip 档案的名称。

语法


zip_entry_name(zip_entry)


参数 描述
zip_entry 必需。规定要读取的 zip 项目资源(由 zip_read() 打开的 zip 项目)。

实例


<?php
$zip = zip_open("test.zip");
if ($zip)
  {
  while ($zip_entry = zip_read($zip))
    {
    echo "Name: " . zip_entry_name($zip_entry) . "<br />";
    }
  zip_close($zip);
  }
?>

上面的代码将输出:


Name: ziptest.txt
Name: htmlziptest.html


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

查看所有标签

You Can Program in C++

You Can Program in C++

Francis Glassborow / John Wiley & Sons / 2006-7 / 406.80元

An interactive and fun way to learn C++, one of the most popular high-level programming languages for graphic applications This unique, hands-on approach to learning C++ makes t......一起来看看 《You Can Program in C++》 这本书的介绍吧!

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

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换