RE: [PHP] &
| From: | Jeremy | Date: | Wed, 28 Jan 2004 15:14:06 +0000 |
| Subject: | RE: [PHP] & | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176057@lists.php.net to get a copy of this message | ||
[snip]
>[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);
>
>?
[/snip]
I tried this and amazingly it worked! The robustness of php defies all
logic and comprehension! When did they sneak in this new feature to read
the mind of the programmer? Keep up the good work guys!
-J