Re: How do I do to update part of a string?
| From: | Josh G | Date: | Tue, 16 Jan 2001 02:40:28 +0000 |
| Subject: | Re: How do I do to update part of a string? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34739@lists.php.net to get a copy of this message | ||
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" <php@diffdev.com>
To: "php-general" <php-general@lists.php.net>
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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>