Class ListIterator

Object
   |
   --Iterator
      |
      --ListIterator
Classes extended from ListIterator:
Location: Program_Root/iterator/ListIterator.php
class ArrayIterator
 This class will iterate over an array, index by index.
 The usage for this class would probably be seen best in the following:
 
 $iter = new ArrayIterator(array( 1, 2, 4, 5, 6, 7, 9 ));
 for($i = $iter->reset(); $i < $iter->end(); $i = $iter->next())
 {
    echo $iter->current();
 }

 or

 $iter = new ListIterator(array(1, 2, 3, 4, 5, 6));
 while( $iter->hasNext() )
 {
    echo $iter->current();
 }

Class Variable Summary


Inherited Class Variable Summary


Method Summary


Inherited Method Summary

Inherited From Class Iterator

Inherited From Class Object


Variable Detail


Method Detail