DirectoryIterator::valid
FilesystemIterator::__construct
Iterators
PHP Manual

# The FilesystemIterator class

## Introducción

The Filesystem iterator

## Class synopsis

FilesystemIterator
FilesystemIterator extends DirectoryIterator implements SeekableIterator , Traversable , Iterator {
/* Methods */
__construct ( string `$path` [, string `$flags` ] )
mixed current ( void )
public int getFlags ( void )
string key ( void )
public void next ( void )
public void rewind ( void )
public void setFlags ([ string `$flags` ] )
/* Inherited methods */
DirectoryIterator DirectoryIterator::current ( void )
int DirectoryIterator::getATime ( void )
int DirectoryIterator::getCTime ( void )
string DirectoryIterator::getFilename ( void )
int DirectoryIterator::getGroup ( void )
int DirectoryIterator::getInode ( void )
int DirectoryIterator::getMTime ( void )
int DirectoryIterator::getOwner ( void )
string DirectoryIterator::getPath ( void )
string DirectoryIterator::getPathname ( void )
int DirectoryIterator::getPerms ( void )
int DirectoryIterator::getSize ( void )
string DirectoryIterator::getType ( void )
bool DirectoryIterator::isDir ( void )
bool DirectoryIterator::isDot ( void )
bool DirectoryIterator::isExecutable ( void )
bool DirectoryIterator::isFile ( void )
bool DirectoryIterator::isLink ( void )
bool DirectoryIterator::isReadable ( void )
bool DirectoryIterator::isWritable ( void )
string DirectoryIterator::key ( void )
void DirectoryIterator::next ( void )
void DirectoryIterator::rewind ( void )
string DirectoryIterator::valid ( void )
}

## Table of Contents

- FilesystemIterator::__construct — Constructs a new filesystem iterator
- FilesystemIterator::current — The current file
- FilesystemIterator::getFlags — Get the handling flags
- FilesystemIterator::key — Retrieve the file name
- FilesystemIterator::next — Move to the next entry
- FilesystemIterator::rewind — Rewinds dir
- FilesystemIterator::setFlags — Sets handling flags

DirectoryIterator::valid
FilesystemIterator::__construct
Iterators
PHP Manual