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 this happen?
I have no idea. I copied your code and it works as expected.
"This is a little test" is printed out.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
: - cut in regexps
I don't think we reached consensus on that. We're still backtracking...
-- Larry Wall in <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]