I am using str_replace(); to add BB Code in my forum that I am making. Here is the code I am having trouble with.
$content = str_replace("[glow=",'<span style="width: 100; height: 25; font-family: verdana; filter: glow(color=',$content);
$content = str_replace("]",', strength=5)">',$content);
$content = str_replace("[url=","<a href=",$content);
$content = str_replace("[/url]","</a>",$content);
$content = str_replace("]"," target=blank_>",$content);
with this I can use
but
will not work because it wont shut off, all because of this line
$content = str_replace("]",', strength=5)">',$content);
now is I put
first then it
will not work how can I get them to work