| | OK well I am making a new php program and I am trying to add bbcode to it. Anyway I was going to replace each thing by it self, but that could cause errors. Anyway is there a way to make a variable be anything? Here is an example: CODE This is the bbcode: [color=00FF00]Hey[/color] In my php: $bbcode = array("[color=".$a."]"); $html = array( "<font color='#".$a."'>"); $topic_content = str_replace($bbcode, $html, $posted_bbcode); So I want $a to be any variable but the same variable as used before. Do you get what I am saying? It is a little confusing but basicly what is the best way to make bbcode? It may not even involve the str_replace but this was the easyiest way to explain what I wanted. Thanks for everyone that helps, Sparkx |

