RE: [PHP] str_replace on words?
| From: | Jay Blanchard | Date: | Wed, 11 May 2005 17:27:29 +0000 |
| Subject: | RE: [PHP] str_replace on words? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-214959@lists.php.net to get a copy of this message | ||
[snip]
Does anybody know how to do this on just words?
[/snip]
explode the string into an array of words and then apply the function to
the array value. Then implode the string into a new string.
http://www.php.net/explode
http://www.php.net/implode