|
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
Navigation:
[Reply to this message]
|