<?php $a = '<table><tr><td>A</td><td>B</td></tr></table>'; $DOM = new DOMDocument; $DOM->loadHTML($a); $xPath = new DOMXPath($DOM); $other = $xPath->query('//not(tbody|thead) tr'); var_dump($other);
You have javascript disabled. You will not be able to edit any code.