Bug #10019: string str_replace(string needle, string str, string haystack);
| From: | kvdwalt at csir dot co dot za | Date: | Tue, 27 Mar 2001 13:59:44 +0000 |
| Subject: | Bug #10019: string str_replace(string needle, string str, string haystack); | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50054@lists.php.net to get a copy of this message | ||
From: kvdwalt@csir.co.za
Operating system: NT
PHP version: 3.0.16
PHP Bug Type: Scripting Engine problem
Bug description: string str_replace(string needle, string str, string haystack);
string str_replace(string needle, string str, string haystack);
fails if haystack ends in needle
// str_replace fail if string ends on #..# so ad <space>
$QueryText = "Select count(*) from #TABLENAME# ";
$QueryText = str_replace("#TABLENAME#", "extracts", $QueryText);
echo "The Query was :".$QueryText."<br>";