Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

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

I don't like the idea of having two such different functions having almost
the same name (I think the original count_chars() doesn't have the right
name but it's too late to change it now). It will be very confusing. I
would go either for char_count() or see if someone else can come up with a
better name which doesn't resemble any existing functions.

Andi

At 04:05 PM 4/24/00 -0400, Peter Kovacs wrote:
>Okay. My only concern was making it too similar to the existing and
>(somewhat) unrelated function count_chars. I've renamed it to
>count_char. The diff is attached.
>
>Peter
>
>On Mon, 24 Apr 2000, Andi Gutmans wrote:
>
> > We are trying to standardize function names now, and as you mentioned we
> > use underscores. So this function should be called something like
> > char_count() or count_chars().
> >
> > Andi
> >
> > At 08:05 PM 4/24/00 +0200, Cynic wrote:
> > >I like when function names have a system. Most PHP function
> > >name have words separated by underscore. Otherwise it's
> > >confusing ('is it addslashes or add_slashes?'). So, if you
> > >commit this patch, it'd be nice if the function was named
> > >maybe char_count.
> > >
> > >
> > >At 13:59 24.4.2000 -0400, Peter Kovacs wrote the following:
> > >--------------------------------------------------------------
> > > >I've created a new function chrcount (count_chars was already taken, and
> > > >count_char is too similar) which finds the number of times a character
> > > >appears in a string.
> > > >
> > > >Let me know what you all think.
> > > >
> > > >Peter
> > > >
> > > >--------------------------------------------------
> > > >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>
> > >------end of quote------
> > >
> > >
> > >____________________________________________________________
> > >Cynic:
> > >
> > >A member of a group of ancient Greek philosophers who taught
> > >that virtue constitutes happiness and that self control is
> > >the essential part of virtue.
> > >
> > >cynic <email protected>
> > >ICQ: 2808 2505
> > >
> > >
> > >
> > >
> > >
> > >
> > >--
> > >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>
> >
> > ---
> > 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>
>--------------------------------------------------

---
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>