Re: [PHP4BETA] replacing a substring

From: Date: Sat, 20 Nov 1999 22:50:47 +0000
Subject: Re: [PHP4BETA] replacing a substring
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.version4 
Request: Send a blank email to php-version4+get-6643@lists.php.net to get a copy of this message
Andrei Zmievski writes: > On Wed, 17 Nov 1999, Lars Torben Wilson wrote: > > Yeah, neither do I. With the diffs I sent, you can achieve this by > > using the empty string for $repl. I'm just going by the fact that when > > I personally tried it and started writing the docs, it felt a little > > cumbersome. But one data point does not make much of a case study into > > what users want. :) > > > > > Right now it defaults to the value that would remove anythin from the > > > offset to the end of the string. Once again, different people have > > > different opinions on what should be the default. I don't know exactly > > > how to gauge it. > > > > Again, me neither. Maybe there should be a definitive list somewhere: > > "How to Make Everyone Happy". The people talking about db abstraction > > could probably use something like that, too... > > Anyway, I change the order of the arguments like you suggested but I > haven't changed what length defaults to - right now it's still until the > end of the string. If you or someone else can give me a good argument > why it should default to 0 or strlen($repl) I'll change it. > > -Andrei Nope, I won't argue with that. Torben

« previous php.version4 (#6643) next »