You are here: str_replace on words? « PHP « IT news, forums, messages
str_replace on words?

Posted by Merlin on 05/11/05 19:13

Hi there,

I am trying to strip some words from a sentence. I tried it with str_replace
like described here:
http://www.totallyphp.co.uk/code/find_and_replace_words_in_a_text_string_using_str_replace.htm

Unfortunatelly it does not work the way I want, because if I want to replace the
word "in" all passages containing the characters "in" are replaced. For example
Singapore.

Does anybody know how to do this on just words?

Thank you for any hint,

Merlin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация