Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] New function chrcount From: Andi Gutmans (andi <email protected>)
Date: 04/24/00

At 03:40 PM 4/24/00 -0500, Andrei Zmievski wrote:
>On Mon, 24 Apr 2000, Andi Gutmans wrote:
> > At 04:27 PM 4/24/00 -0500, chagenbu <email protected> wrote:
> > >Quoting Peter Kovacs <kovacsp <email protected>>:
> > >
> > > > I like the str_chr_freq suggestion, any objections to that?
> > >
> > >What about char_freq()? Slightly shorter...
> >
> > I like that better than the str_chr_freq() one.
>
>Except that 'frequency' is incorrect here. Frequency means how often
>something occurs per an instance of something else. This is just a
>simple count.

How about "How often does the character ("something") occur per an instance
of the string ("something else")."
Anyway, it's not like I'm hooked on it. I just didn't like the
str_chr_freq() and the count_char() vs. count_chars() one.

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>