Re: [PHP] replace functions add \

2001-05-01 Thread Jason Stechschulte
On Mon, Apr 30, 2001 at 10:16:13AM -0700, Kasten, Holger wrote: > I have a strange problem. > I tried ereg_rplace and str_replace: > > $to_test = 'This is a test'; > $to_test = str_replace ("test","little test",$to_test); > echo $to_test; > > the result is: "This is a \little test" > Why does thi

[PHP] replace functions add \

2001-04-30 Thread Kasten, Holger
Hello, I have a strange problem. I tried ereg_rplace and str_replace: $to_test = 'This is a test'; $to_test = str_replace ("test","little test",$to_test); echo $to_test; the result is: "This is a \little test" Why does this happen? -- PHP General Mailing List (http://www.php.net/) To unsu