Posted by milahu on 04/03/06 17:11
I recommend using preg_* since it's usually faster than ereg_*. Try this one: preg_replace( '#^(.*)(<div class="foo">.*</div>)#isU', '$2$1', $content ); If you store your contents in a database it would be easier (and performance saving) to store the image in a separate row.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming