static function __static() { self::$iterate = newinstance('Iterator', array(), '{ private $i= 0, $v; public function on($v) { $self= new self(); $self->v= $v; return $self; } public function current() { return current($this->v); } public function key() { return $this->i; } public function next() { next($this->v); $this->i++; } public function rewind() { reset($this->v); $this->i= 0; } public function valid() { return $this->i < sizeof($this->v); } }'); }