[PHP] Re: question about str_replace function

2007-01-08 Thread M.Sokolewicz
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

[PHP] Re: Question about str_replace()

2003-02-23 Thread Al
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

[PHP] Re: Question about str_replace()

2003-02-22 Thread Hans Prins
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