Reply to Re: replace all occurrences of a substring in a string (RE)

Your name:

Reply:


Posted by Piratron on 02/13/06 20:09

MaKroZ wrote:
> On Mon, 13 Feb 2006 00:05:38 +0100, Piratron wrote:
>
>> so, I would like to replace all occurrences of "{POST_CODE}" with
>> another string.
>
>
> PHP Manual -> CXLIX. String Functions -> str_replace
>
> str_replace -- Replace all occurrences of the search string with the
> replacement string
>
>
>

well, I'm afraid you didn't understand me. Simple str_replace function
wont solve my problem because I have to replace text between two html tags!
I can determine the position of first an last tag with a loop or
something and then replace the text inside it. But I have a dozens of
those tags so I really need a smart function to find all that
occurrences. What will be the faster method? The one I just mentioned or
using eregi_replace or preg_replace?

--
Please visit our site at:
www.symbian-mobile.org

Regards,
Symbian-Mobile Team

[Back to original 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

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