Search Results
Returns the number of entries (files) in the Phar archive
mode is an integer value specifying the counting mode to be used. By default, it is set to COUNT_NORMAL, which counts only the number of items in the archive that have not been deleted or hidden. When set to COUNT_RECURSIVE, it counts all items in the archive, including those that have been deleted or hidden.
Phar::count (PHP 5 >= 5.3.0, PHP 7, PECL phar >= 1.0.0) Phar::count — Returns the number of entries (files) in the Phar archive Description public Phar::count ( ) : int Parameters Return Values The number of files contained within this phar, or 0 (the number zero) if none.
Liste de paramètres Valeurs de retour Le nombre de fichiers contenus dans le phar, ou 0 (le nombre zéro) si aucun.
English PHP documentation. Contribute to php/doc-en development by creating an account on GitHub.
Simple usage example of `Phar::count ()`. Phar::count () is a PHP function that returns the number of entries (files) present in a Phar archive. It can be used to determine the total number of files stored within the archive.
Phar::copy — Copy a file internal to the phar archive to another new file within the phar Phar::count — Returns the number of entries (files) in the Phar archive
