RecursiveDirectoryIterator::rewind
RecursiveIteratorIterator::current
SPL
PHP Manual

# The RecursiveIteratorIterator class

## Introduction

...

## Class synopsis

RecursiveIteratorIterator
class RecursiveIteratorIterator implements OuterIterator , Traversable , Iterator {
/* Methods */
mixed current ( void )
int getDepth ( void )
RecursiveIterator getSubIterator ( void )
mixed key ( void )
void next ( void )
void rewind ( void )
bolean valid ( void )
}

## Table of Contents

- RecursiveIteratorIterator::current — Access the current element value
- RecursiveIteratorIterator::getDepth — Get the current depth of the recursive iteration
- RecursiveIteratorIterator::getSubIterator — The current active sub iterator
- RecursiveIteratorIterator::key — Access the current key
- RecursiveIteratorIterator::next — Move forward to the next element
- RecursiveIteratorIterator::rewind — Rewind the iterator to the first element of the top level inner iterator
- RecursiveIteratorIterator::valid — Check whether the current position is valid

RecursiveDirectoryIterator::rewind
RecursiveIteratorIterator::current
SPL
PHP Manual