How to add <br> tag affter <img> tag?
<p>I want to add <code>&lt;br&gt;</code> tag affter  tag, my code :</p>

<pre><code>$string = "&lt; div&gt; &lt; img src="http://abc.com/a.jpg"&gt; &lt; /div&gt;";
$pattern = '/&lt; img*+&gt;+/i';
$replacement = '${1}'.'&lt; br&gt;';
echo preg_replace($pattern, $replacement, $string);
</code></pre>

<p>but it does not work, please help me, thanks.</p>
