Hi all,
I got a doubt about the str_replace function.
[PHP]<?php
$string="avenue 1, ave 1";
$words=str_repl ace ("ave","avenue" , $string);
echo $words;
?>[/PHP]
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
I got a doubt about the str_replace function.
[PHP]<?php
$string="avenue 1, ave 1";
$words=str_repl ace ("ave","avenue" , $string);
echo $words;
?>[/PHP]
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
Comment