Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60942 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 783 invoked from network); 22 Jun 2012 20:59:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2012 20:59:42 -0000 Authentication-Results: pb1.pair.com header.from=tomsartain@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tomsartain@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: tomsartain@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:38526] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/30-21324-DBCD4EF4 for ; Fri, 22 Jun 2012 16:59:42 -0400 Received: by obfk16 with SMTP id k16so2908529obf.29 for ; Fri, 22 Jun 2012 13:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=J/EgP5aQSJjXmj3c+08YXY9Vjaewd4FPBpLBe9F2eR8=; b=z/IStb7OV9U/dNg4z4gV5sT4byvZN26lEAzwZ4o3X+nvfuy/viHV3KD1GZwEmioo5W fzMczzAv4Jv/xLo+OBmZ91olYmh5sexYZ2m/7L8jYaMKAxpmTXDlnadUGYmyDVaW7tiT q2svpP76yKeSMDFU7gBUavIiIMYdFvHHjvyI9RZruMyZc5HMza3ktjthgird5a69GCof Eb5aTwrZvv+0AkB+CUyIxtIXOfzn2IPHMJDSHRdSTlHz3cDWjqvYeJnqlwEkRSd2RJjl 7pIFB801aCpze45wnoKHh2i3X8XJ5aI2hl7ZqUpqNmUoMw1OFt/UarkNvcL14KHfwPVL Vorw== MIME-Version: 1.0 Received: by 10.182.18.136 with SMTP id w8mr3486380obd.38.1340398778921; Fri, 22 Jun 2012 13:59:38 -0700 (PDT) Received: by 10.76.142.10 with HTTP; Fri, 22 Jun 2012 13:59:38 -0700 (PDT) In-Reply-To: <4FE494A9.5040605@php.net> References: <4FE3759D.4010606@php.net> <4FE449BA.9040108@leo-peltier.fr> <4FE494A9.5040605@php.net> Date: Fri, 22 Jun 2012 16:59:38 -0400 Message-ID: To: Ben Ramsey Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d043c7fc813338c04c315e939 Subject: Re: [PHP-DEV] [DRAFT] RFC - array_column() function From: tomsartain@gmail.com (Tom Sartain) --f46d043c7fc813338c04c315e939 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Jun 22, 2012 at 11:52 AM, Ben Ramsey wrote: > On 6/22/12 5:32 AM, L=E9o 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 --f46d043c7fc813338c04c315e939--