Monday, 2 September 2013

Finding and removing html tags with PHP Simple HTML DOM Parser

Finding and removing html tags with PHP Simple HTML DOM Parser

this is the code i am using
<?php
include 'simple_html_dom.php';
$html = file_get_html('index.html');
echo $html->find('tr', 15);
?>
this will find the row 15 of the table . what i want to do is to remove
that row completely
i have already tried
$html->find('tr', 15)=null;
but that dosn't seem to work
i have tried finding the info on
http://simplehtmldom.sourceforge.net/manual.htm but online document dosn't
contain much information

No comments:

Post a Comment