downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

InfiniteIterator> <GlobIterator::__construct
Last updated: Fri, 14 Aug 2009

view this page in

GlobIterator::count

(PHP 5 >= 5.3.0)

GlobIterator::countLit le nombre de dossiers et fichiers

Description

public integer GlobIterator::count ( void )

Lit le nombre de dossiers et fichiers trouvés par l'expression Glob.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Le nombre de dossiers et fichiers est retourné sous forme d'entier.

Exemples

Exemple #1 Exemple avec GlobIterator::count

<?php
$iterator 
= new GlobIterator('*.xml');

printf("Trouvé %d élément(s)\r\n"$iterator->count());
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

Matched 8 item(s)

Voir aussi

  • GlobIterator::__construct - Construit un itérateur de type glob
  • count() - Compte tous les éléments d'un tableau ou le nombre de propriétés d'un objet
  • glob() - Recherche des chemins qui vérifient un masque



add a note add a note User Contributed Notes
GlobIterator::count
There are no user contributed notes for this page.

InfiniteIterator> <GlobIterator::__construct
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites