Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] New function chrcount From: Peter Kovacs (kovacsp <email protected>)
Date: 04/24/00

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 <email protected>>
> http://www.zend.com/
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
> For additional commands, e-mail: php4beta-help <email protected>
> To contact the list administrators, e-mail: php4beta-admin <email protected>
>
>

--------------------------------------------------
Peter D. Kovacs KnowPost.com LLC
Lead Engineer peter <email protected>
--------------------------------------------------

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>