On Wednesday 28 January 2004 10:23 am, Stuart wrote: > Not from where I'm sitting [PHP 4.3.3RC1 (cli) (built: Jun 21 2003 > 23:40:27) on FreeBSD built from ports]. Code... >
Hey, as least we can agree with something..... FreeBSD :) > print str_replace('&', '&', 'Here is one & and here is another &'); > > ... outputs ... > > Here is one & and here is another & > You're absolutely correct. I jumped the gun way too early. My experience with replacing & with & is that if the content already contains entity content, for example Running str_replace will mess them up. > Do you need more coffee? Maybe some latte ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php