Re: [PHP4BETA] New function chrcount
| From: | Peter Kovacs | Date: | Mon, 24 Apr 2000 21:42:16 +0000 |
| Subject: | Re: [PHP4BETA] New function chrcount | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14019@lists.php.net to get a copy of this message | ||
Okay, I have it counting non-overlapping substrings. Making it count
overlapping substrings turned out to be really trivial, so we could make
it an optional behavior. But as was mentioned before, that's probably not
very useful.
I've named it str_count, but whoever commits it gets the final say I
guess. :)
Peter
On Tue, 25 Apr 2000, Andi Gutmans wrote:
> At 04:18 PM 4/24/00 -0500, Andrei Zmievski wrote:
> >On Tue, 25 Apr 2000, Andi Gutmans wrote:
> > > How about str_occurences()
> >
> >That's too long and prone to typos.
>
> I prefer longer function names over function names which I'm not sure what
> they do according to their name. Personally I can't tell from the name
> str_count() what it does.
> Maybe my suggestion wasn't good but I prefer something which is easier to
> understand.
> Andi
> ---
> Andi Gutmans <andi@zend.com>
> http://www.zend.com/
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>
--------------------------------------------------
Peter D. Kovacs KnowPost.com LLC
Lead Engineer peter@knowpost.com
--------------------------------------------------