The ArrayIterator class

Introduction

This iterator allows to unset and modify values and keys while iterating over Arrays and Objects.

When you want to iterate over the same array multiple times you need to instanciate ArrayObject and let it create ArrayIterator instances that refer to it either by using foreach or by calling its getIterator() method manually.

Class synopsis

ArrayIterator
ArrayIterator implements Iterator , Traversable , ArrayAccess , SeekableIterator , Countable {
/* Methods */
mixed ArrayIterator::current ( void )
mixed ArrayIterator::key ( void )
void ArrayIterator::next ( void )
void ArrayIterator::rewind ( void )
void ArrayIterator::seek ( int $position )
bool ArrayIterator::valid ( void )
}

Table of Contents


    

 

 

Home || Web Directroy || Web Designing || Get a Domain Name || Host your web site || Free Blogs || Free Tutorial || Free E-cards || Free GuestBook || Email