You can always use the simple str_replace or my old fave,

$newstring=implode($withthis,explode($this,$oldstring));

replaces all instances of $this with $withthis in $oldstring

Gfunk         -          http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


----- Original Message -----
From: "Romulo Roberto Pereira" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:39 PM
Subject: [PHP] How do I do to update part of a string?


> I have a big string. How can I do to find some text inside and modify that
> text? I was thinking about ereg_replace(). But it is capable to handle big
> chuncks of text? If yes, it will notbe too heavy for theserver? Any other
> ideas?
>
> Thank you,
>
> Rom
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to