Re: [PHP4BETA] new array function names
| From: | Monte Ohrt | Date: | Mon, 07 Jun 1999 15:44:14 +0000 |
| Subject: | Re: [PHP4BETA] new array function names | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1364@lists.php.net to get a copy of this message | ||
Stig Bakken wrote:
>
> On Sat, 5 Jun 1999, Monte Ohrt wrote:
>
> > Andrey has just submitted some new array functions to PHP.
> > Question is, should these function names remain:
> >
> > push()
> > pop()
> > shift()
> > unshift()
> > slice()
> > splice()
> >
> > or should we follow the convention:
> >
> > array_push()
> > array_pop()
> > array_shift()
> > array_unshift()
> > array_slice()
> > array_splice()
> >
> >
> > My thoughts:
> >
> > These will most likely be relatively widely used PHP functions,
> > so I kind like them the way they are, easy to type and remember.
> >
> > And they match the perl function name counterparts,
> > if that has any bearing.
> >
> > Other thoughts?
>
> We already have array_walk(), but shorter names are usually better IMHO.
> I think keys() and values() would be very useful too. :-)
Coming right up....
Monte
--
Monte Ohrt monte@ispi.net | 99 bugs in the code,
Chief Technologist ispi of Lincoln | 99 bugs, fix one bug,
voice: +1.402.441.3295 | compile it again,
http://www.ispi.net fax: +1.402.483.5418 | 101 bugs in the
code...