2009-12-30, 02:00 PM
(2009-12-30, 12:53 AM)MattRogowski Wrote: [ -> ]$str = "Something here, Something else here, Something different here."; $str = str_replace("Something", "<strong>Something</strong>", $str);
$ php -a
Interactive shell
php > $str = "Something here, Something else here, Something different here.";
php > $str = str_replace("Something", "<strong>Something</strong>", $str);
php > echo $str;
<strong>Something</strong> here, <strong>Something</strong> else here, <strong>Something</strong> different here.
php >
Works fine in 5.2.11... don't see why it shouldn't work for you.