Code: Select all
<?php
//convert tags
$str=preg_replace("/\[img\]([^\[]*?)\[\/img\]/i","<img src='\\1' align=left>",$str);
?>Does anybody have a one line solution to this problem?
Moderator: General Moderators
Code: Select all
<?php
//convert tags
$str=preg_replace("/\[img\]([^\[]*?)\[\/img\]/i","<img src='\\1' align=left>",$str);
?>