question about str_replace function
| From: | Kencana | Date: | Mon, 08 Jan 2007 09:11:57 +0000 |
| Subject: | question about str_replace function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-246741@lists.php.net to get a copy of this message | ||
Hi all,
I got a doubt about the str_replace function.
<?php
$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 how can i get such result?
Thank you
Regards,
Kencana
--
View this message in context: http://www.nabble.com/question-about-str_replace-function-tf2938171.html#a8214599
Sent from the PHP - General mailing list archive at Nabble.com.