こんにちは、src が preg_replace を使用してコンテンツ内の URL である img タグを削除したいと思います。
元。
$content = "<center><img src="http://example.net/wp-content/uploads/2012/10/cell-degeneration-contn.jpg" alt="" title="cell-degeneration-contn" width="950" height="272" class="alignnone size-full wp-image-100" /></center><h2>A first-in-class approach to stop & reverse </h2>";
したがって、出力は次のようになります。
$content="<center></center><h2>A first-in-class approach to stop & reverse </h2>";
しかし、可能であれば最良の出力は次のとおりです。
$content="A first-in-class approach to stop & reverse ";