...

View Full Version : use srt_replace many times



urgido
11-19-2006, 07:35 AM
Hi,

I have the following code:


str_replace('Hello',$hi,$category);
str_replace('****',$code,$category);
str_replace('wtf',$code2,$category);

For strange reasons only it replaces the first element. How can I do in order that replaces all the variables?

Best Regards :)

Beagle
11-22-2006, 03:57 AM
$category = str_replace('Hello',$hi,$category);
$category = str_replace('****',$code,$category);
$category = str_replace('wtf',$code2,$category);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum