replace functions add \
| From: | Kasten, Holger | Date: | Mon, 30 Apr 2001 17:16:13 +0000 |
| Subject: | replace functions add \ | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50879@lists.php.net to get a copy of this message | ||
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?