change it to
Kencana wrote:
Hi all,
I got a doubt about the str_replace function.
$string="avenue 1, ave 1";
$words=str_replace ("ave","avenue", $string);
echo $words;
?>
the php code above will return me "avenuenue 1, avenue 1". i expect the
result will be "avenue 1, avenue 1". any idea of
That's what's blowing my mind. It is so simple it should work. The
php/apache [Zend] on my virtual host just seems to ignore the the
brackets.
Hans Prins wrote:
Assuming that you do want to replace "[p]" with "", the code you posted
worked for me. The following printed: "leadingtexttrailingtext
Assuming that you do want to replace "[p]" with "", the code you posted
worked for me. The following printed: "leadingtexttrailingtext" to the
screen
');
$text = "leadingtext[p]trailingtext";
$words = str_replace ($find, $replace, $text);
print $words;
?>
"Al" <[EMAIL PROTECTED]> schreef in b
3 matches
Mail list logo