RE: [PHP] &
| From: | Jay Blanchard | Date: | Wed, 28 Jan 2004 14:39:30 +0000 |
| Subject: | RE: [PHP] & | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176049@lists.php.net to get a copy of this message | ||
[snip]
> is there any function that will always replace a "&" with a "&"
> in
a
> string?
$string = str_replace('&', ' ', $string);
[/snip]
Shouldn't this be
$string = str_replace('&', '&', $string);
?