View Single Post
  #2 (permalink)  
Old 02-08-2007, 08:44 PM
justin justin is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 43
Rep Power: 7
justin is on a distinguished road
Default

PHP Code:
// This will determine things what you want to replace
$replace = array(":)"":D"":(");

// This will determine your text replacement
$replace_to = array("<img src='smile.gif'>""<img src='laugh.gif'>""<img src='sad.gif'>");
$content str_replace($replace$replaceto$text); 
With the str_replace when you use the $replaceto variable, shouldn't it be $replace_to, like the variables name?
__________________

I am currently willing to do just about anything for $50 on paypal, anyone need odd jobs done?
Reply With Quote