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