Draft -- phpQuery anonymous each
in a class :
$this->test = ''; $self = $this; phpQuery::each( $doc['div.class_doe'], function($index, $value) use($self){ $self->test .= "\t\t".pq($value)->parent()->parent()->attr('id')."\r\n"; } ); echo $this->test."\r\n";











