Make it an interface with an code example as comment

This commit is contained in:
Marcus Boerger 2003-11-17 00:55:37 +00:00
parent 39df192788
commit 883777623a

View File

@ -1,16 +1,16 @@
<?php
class SeekableIterator implements Iterator
interface SeekableIterator implements Iterator
{
function seek($index) {
$this->rewind();
function seek($index);
/* $this->rewind();
$position = 0;
while($position < $index && $this->hasMore()) {
$this->next();
$position++;
}
return $position;
}
}*/
}
?>