FilterIterator::valid
GlobIterator::__construct
Iterators
PHP Manual
The GlobIterator class
Introduction
Iterates through a file system in a similar fashion to
glob()
.
Class synopsis
GlobIterator
GlobIterator
extends
FilesystemIterator
implements
Iterator
,
Traversable
,
SeekableIterator
,
Countable
{
/* Methods */
__construct
(
string
$path
[,
string
$flags
] )
public
integer
count
(
void
)
/* Inherited methods */
FilesystemIterator::__construct
(
string
$path
[,
string
$flags
] )
mixed
FilesystemIterator::current
(
void
)
public
int
FilesystemIterator::getFlags
(
void
)
string
FilesystemIterator::key
(
void
)
public
void
FilesystemIterator::next
(
void
)
public
void
FilesystemIterator::rewind
(
void
)
public
void
FilesystemIterator::setFlags
([
string
$flags
] )
}
Table of Contents
GlobIterator::__construct
— Construct a directory using glob
GlobIterator::count
— Get the number of directories and files
FilterIterator::valid
GlobIterator::__construct
Iterators
PHP Manual