The SeekableIterator interfaceIntroductionThe Seekable iterator. Interface synopsis
SeekableIterator
extends
Iterator
/* Methods */
public void SeekableIterator::seek(int
$offset )/* Inherited methods */
public mixed Iterator::current()
public mixed Iterator::key()
public void Iterator::next()
public void Iterator::rewind()
public bool Iterator::valid()
ExamplesExample #1 Basic usage This example demonstrates creating a custom SeekableIterator, seeking to a position and handling an invalid position.
The above example will output something similar to: first element third element second element invalid seek position (10)
|