For the life of me, I CAN'T get this to work, it's seriously getting old messing with these three lines over and over again.
Help?
$a = array(">", "<", "[b]", "[/b]", "[i]", "[/i]", "[center]", "[/center]", "[u]", "[/u]", "[link=(.*?)](.*?)[/link]", "[img](.*?)[/img]");
$b = array(">", "<", "<b>", "</b>", "<i>", "</i>", "<center>", "</center>", "<u>", "</u>", "<a href=$1>$2</a>", "<img src=$1>");
$post= str_replace($a,$b,$post);
Everything on this works AWESOME except the two most important ones, the IMG and LINK.
thoughts?