1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/spl/examples/searchiterator.inc
2004-03-08 17:33:31 +00:00

21 lines
271 B
PHP
Executable File

<?php
abstract class SearchIterator extends FilterIterator
{
private $done = false;
function rewind() {
parent::rewind();
$this->done = false;
}
function valid() {
return !$this->done && parent::valid();
}
function next() {
$this->done = true;
}
}
?>