这是我使用的代码:
include 'simple_html_dom.php';
$html = file_get_html('index.html');
echo $html->find('tr', 15);
这将找到表的第15行。我想要做的是完全删除该行。
我已经试过了
$html->find('tr', 15)=null;
但这似乎并不管用。我试过在SimpleHTMLDom documentation上查找信息,但它不包含太多信息。
https://stackoverflow.com/questions/18573070
复制相似问题