question about str_replace()
| From: | xinkun wang | Date: | Wed, 26 Jul 2000 15:24:08 +0000 |
| Subject: | question about str_replace() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8319@lists.php.net to get a copy of this message | ||
Dose anybody know if I want to replace the word which exactly begin with the word and maybe have some postfix changing. For instance I want to replace "good", "goodes", "goodbye" to new words, but not change "togood".
I use
$word="good";
$ins="^".$word;
str_place($ins,"newword",$line);
but it does not work, any ideas?
please reply this email.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com