array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'ziparchive.count.php', 1 => 'ZipArchive::count', 2 => 'Counts the number of files in the archive', ), 'up' => array ( 0 => 'class.ziparchive.php', 1 => 'ZipArchive', ), 'prev' => array ( 0 => 'ziparchive.close.php', 1 => 'ZipArchive::close', ), 'next' => array ( 0 => 'ziparchive.deleteindex.php', 1 => 'ZipArchive::deleteIndex', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/zip/ziparchive/count.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ZipArchive::count

(PHP 7 >= 7.2.0, PHP 8, PECL zip >= 1.15.0)

ZipArchive::countCounts the number of files in the archive

说明

public ZipArchive::count(): int

参数

此函数没有参数。

返回值

Returns the number of files in the archive.