matt2kjones
11-10-2002, 09:47 AM
ok im makeing a reviews script for someone
and i want them to be able to use bbcode in their posts instead of html.
I am using str_replace() to do this, but i have a problem.
i can do this fine :
$reviews_post = str_replace("[b]", "<b>", $reviews_post);
but how do you do it if you want to change not only to <b> but [b] and to <b> and </b> in one go?
Thanx :)
and i want them to be able to use bbcode in their posts instead of html.
I am using str_replace() to do this, but i have a problem.
i can do this fine :
$reviews_post = str_replace("[b]", "<b>", $reviews_post);
but how do you do it if you want to change not only to <b> but [b] and to <b> and </b> in one go?
Thanx :)
