Exemplo n.º 1
0
 function valid()
 {
     if (!parent::valid()) {
         return false;
     }
     return call_user_func_array($this->predicate, array(parent::current(), $this->index));
 }
Exemplo n.º 2
0
 public function rewind()
 {
     parent::rewind();
     //need to loop until first match
     $this->movetonextmatch();
 }