Re: [PHP4BETA] replacing a substring
| From: | Lars Torben Wilson | Date: | Sat, 13 Nov 1999 02:45:43 +0000 |
| Subject: | Re: [PHP4BETA] replacing a substring | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6164@lists.php.net to get a copy of this message | ||
Tom Fishwick writes:
> Lars Torben Wilson wrote:
> I don't want to replace all occurences of the string, just one in a
> certain place, if str_replace had arguments to specify, pos, and
> max_replaces, then it would work... did that make sense?
>
> Tom
Ah. For this, I think you're stuck with just cutting up the string and
replacing on the part you want, unless someone decides to add this
functionality to PHP. Make a function out of it and stick it
in a library file and you're all set.
Torben