PHP ~ phpQuery foreach example

$groups = pq('.type8 tr:gt(0)');
foreach($groups as $group){
$x = pq($group)->find('td:eq(1)')->text();
print $x.', ';
}


reference
http://stackoverflow.com/questions/5994022/phpquery-get-the-values-from-each-td

沒有留言: