phpday 2027 - Call for Papers

ZipArchive::count

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

ZipArchive::count — Compte le nombre de fichiers dans l'archive

Description

public function ZipArchive::count(): int

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne le nombre de fichiers dans l'archive.

User Contributed Notes 2 notes

up
1
Ignacio C. E.
8 years ago
You can use $zip->numFiles if you are on PHP <7.2
up
0
ohcc at 163 dot com
8 years ago
ZipArchive::count() is introduced in PHP 7.2.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top