I have a situation. I read in a html page using php using this piece of code $body = file_get_contents('index.htm');
Now in the index.htm file is a piece of html code like below that I sometimes need to remove/depends on criteria, so sometimes it needs to be removed and other times not.
<td><table><tr><td></td></tr></table></td>
How do I remove the whole table section between the td tags using PHP.