I only want to get the TR of the first level table, that is, COUNT equals 1. How should I write it correctly?
$html = new simple_html_dom();
$html->load('11111 222223333
');
$trs = $html->find('table',0)->find('tr'); //我想得到的是该table的直属tr,亲儿子。
$count = count($trs);
echo $count;