Breaking my head, help me figure it out. There is a html page with data in the table:
<table> <tr><td><b>1</b></td><td><b>2</b></td><td><b>3</b></td><tr> <tr><td><b>a</b></td><td><b>b</b></td><td><b>c</b></td><tr> <tr><td><b>aa</b></td><td><b>bb</b></td><td><b>cc</b></td><tr> </table> With phpQuery, you need to get the values ​​in the b tags by excluding the first line. I'm trying to do this:
$line = $cat_page_child->find('table > tr'); foreach ($line as $l_link){ $ln = pq($l_link)->html(); $mas_cat_child[]=$ln; } print_r($mas_cat_child); It seems to be getting all the lines, but here's how further to pull out the content of b from the second line? And if you want to get not all b, but selectively? Thank you in advance.