Re: [PHP] String replace in php

2004-04-22 Thread Jason Wong
On Friday 23 April 2004 12:30, T UmaShankari wrote: > I need to replace a character " with "\. Using php how to do this. i > have given like this but it is giving parse error > > $temps=str_replace('"','"\',$temp); > > Can anyone tell me how to do this ? Try: $temps = str_replace('"','"\

[PHP] String replace in php

2004-04-22 Thread T UmaShankari
Hellow, I need to replace a character " with "\. Using php how to do this. i have given like this but it is giving parse error $temps=str_replace('"','"\',$temp); Can anyone tell me how to do this ? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] String replace in php

2004-04-22 Thread T UmaShankari
Hellow, I need to replace a character " with "\. Using php how to do this. i have given like this but it is giving parse error $temps=str_replace('"','"\',$temp); Can anyone tell me how to do this ? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit