On Fri, Jun 22, 2012 at 11:52 AM, Ben Ramsey <ram...@php.net> wrote:

> On 6/22/12 5:32 AM, Léo Peltier wrote:
>
>> Hi,
>>
>> Shouldn't this be called 'array_pluck'?
>> This is the name people usually use when implementing it in PHP (see
>> "array_pluck(" vs "array_column(" in Google) or in other languages/libs
>> (see underscorejs, prototypejs and RoR).
>>
>>
> I'm open to changing or aliasing the name to array_pluck(), if others are
> in agreement.


+1 on using array_pluck.

The term 'column' makes a lot of sense for PDO working with database
columns, but there is no concept of a 'column' in the array structure or
PHP as a whole, outside of database related functions.

- Tom Sartain

Reply via email to