php4-beta | 200004
Date: 04/24/00
- Next message: Andi Gutmans: "Re: [PHP4BETA] New function chrcount"
- Previous message: Michael Pohl: "Re: [PHP4BETA] New function chrcount"
- In reply to: Andrei Zmievski: "Re: [PHP4BETA] New function chrcount"
- Next in thread: Andi Gutmans: "Re: [PHP4BETA] New function chrcount"
- Reply: Andi Gutmans: "Re: [PHP4BETA] New function chrcount"
- Reply: John Steele: "Re: [PHP4BETA] New function chrcount"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 04:45 PM 4/24/00 -0500, Andrei Zmievski wrote:
>On Mon, 24 Apr 2000, Colin Viebrock wrote:
> > How about num_times_char_is_in_string()? :)
> >
> > I'm still rooting for str_chr_freq(), or even just chr_freq(). I realize
> > that etyomologists may cringe at the inexact use of "frequency", but
> > "char_occurence" and "char_tally" look or sound funny, and and agree
> > with Andi that "*_count" is kina ambiguous.
> >
> > How about str_matches() or chr_matches() ?
>
>Well, this is ambiguous too. Is "matches" a noun or a verb here?
What is ambiguous is str_count(). It barely gives you a clue of what the
function does.
num_str_matches() might be more appropriate. Don't save a few characters
just because you want to type less, it is more important that you find a
name which makes sense and that the function's behavior can more or less be
understood by its name.
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>
- Next message: Andi Gutmans: "Re: [PHP4BETA] New function chrcount"
- Previous message: Michael Pohl: "Re: [PHP4BETA] New function chrcount"
- In reply to: Andrei Zmievski: "Re: [PHP4BETA] New function chrcount"
- Next in thread: Andi Gutmans: "Re: [PHP4BETA] New function chrcount"
- Reply: Andi Gutmans: "Re: [PHP4BETA] New function chrcount"
- Reply: John Steele: "Re: [PHP4BETA] New function chrcount"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

