note 88090 rejected from function.str-replace by thiago

From: Date: Fri, 09 Jan 2009 17:46:59 +0000
Subject: note 88090 rejected from function.str-replace by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148996@lists.php.net to get a copy of this message
Note Submitter: jamie dot dale at yahoo dot com ---- I've recently found that using: str_replace("value", "value2", $my_string) will NOT work. Instead, you must now use single quotes: str_replace('value', 'value2', $my_string) Many thanks to php for NOT including this change in the change log and wasting 2 DAYS of my time trying to work out what was wrong.

« previous php.notes (#148996) next »