RE: [PHP] &amp

From: Date: Wed, 28 Jan 2004 15:14:06 +0000
Subject: RE: [PHP] &amp
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 >> "&amp" 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

« previous php.general (#176057) next »