I have multiple img url like this this :-
<img alt="" border="0" src="http://asia.cnet.com/05/i/g/red_arrow_dn.gif">
And I want to replace every start up and close img tag like this in php:-
<div class="miricle_image"><img alt="" border="0" src="http://asia.cnet.com/05/i/g/red_arrow_dn.gif"/></div>
But I am unable to replace start up and close img tag through regex or preg_replace in php.
All img tag created by fckeditor and save in data base and my work is get all img tag through database and replace with
<div class=""><img src=""/></div>
and save again in database.