私はphpファイルを持っています:
$content = str_replace('search old string','by new string',$content);
$content = str_replace('search old string','by new string',$content);
文字列を検索して置換または削除するために機能します。ただし、古い文字列が段落の場合、例:
<table class="adverting_I_want_to_remove">
<tr>
<td>Dynamic Advertise content 1</td>
<td>Dynamic Advertise content 2</td>
</tr>
</table>
コンテンツ内のそのテーブルを削除するには?