Re: [PHP4BETA] new array function names

From: Date: Mon, 07 Jun 1999 11:13:35 +0000
Subject: Re: [PHP4BETA] new array function names
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1354@lists.php.net to get a copy of this message
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. :-) - Stig

« previous php.version4 (#1354) next »