note 11517 added to str_replace

From: Date: Fri, 23 Feb 2001 04:44:00 +0000
Subject: note 11517 added to str_replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-11453@lists.php.net to get a copy of this message
This function does _NOT_ (as the introduction says) "Replace all occurrences of the search string in subject with the replacement string" ... instead it _returns_ a copy of subject with all occurrences of the search string replaced with the replacement string. str_replace("x", "y", $str) does nothing.... $str = str_replace("x", "y", $str) does what the introduction says. http://www.php.net/manual/en/function.str-replace.php

« previous php.notes (#11453) next »