l = strlen($filter); $this->filter = $filter; } public function accept() { $key = $this->getInnerIterator()->key(); if( strncmp($key, $this->filter, $this->l) !== 0 ) { return false; } return true; } } // vim: et sw=4 sts=4