GlobIterator
PHP Manual

GlobIterator::count

(PHP 5 >= 5.3.0)

GlobIterator::countدریافت تعداد دایرکتوری و فایل

Description

public integer GlobIterator::count ( void )

دریافت تعداد دایرکتوری‌ها و فایل یافت شده توسط عبارت جهانی.

Parameters

This function has no parameters.

Return Values

تعداد دایرکتوری و فایل بازگردانده شده به عنوان integer.

Examples

Example #1 مثال GlobIterator::count()

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

printf("Matched %d item(s)\r\n"$iterator->count());
?>

The above example will output something similar to:

Matched 8 item(s)

See Also


GlobIterator
PHP Manual