Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20294 invoked from network); 14 Jan 2013 17:54:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2013 17:54:50 -0000 Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 209.85.220.53 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 209.85.220.53 mail-pa0-f53.google.com Received: from [209.85.220.53] ([209.85.220.53:61080] helo=mail-pa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/05-22727-96644F05 for ; Mon, 14 Jan 2013 12:54:49 -0500 Received: by mail-pa0-f53.google.com with SMTP id hz1so2351963pad.12 for ; Mon, 14 Jan 2013 09:54:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=SvHzTu26oB1DyYb4pSNVy68Tqs9LTKOEdNZq+9iBhnY=; b=bkbZ3377DHA/X7xd0uxhdGqAc/725aHm1vhBUuVLJhPFYcrw67dh07QlRGWFlbhKpO sHSr2UF57uhC+rv5NYsi55mbYhOnkXWb+/ogEfULtHX1o5Le8N0f/0Yty84C/3OFKnv7 hC7GDJra8RLatX2VscxGZA0Uykr9ZYdcGK580bWodjiIEJG60R+j3GC7Y2NrhFWjUUcv yIjq61eapQzT+6bXHtz+bSJAVfERCXrpMZaE+G+UazWC2MLkTT+k22iBPvxspgYeenY5 BpFJvg4PWuJXCusjzZOFxTGu2gPKJ8a2JG1jOEkGSCflARI+E55g/mEiEW3pyirAWx9+ ic6g== X-Received: by 10.66.80.68 with SMTP id p4mr234250700pax.35.1358186086480; Mon, 14 Jan 2013 09:54:46 -0800 (PST) Received: from ?IPv6:2620:0:1cfe:99::8? ([2620:0:1cfe:99::8]) by mx.google.com with ESMTPS id k4sm9120900paz.26.2013.01.14.09.54.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jan 2013 09:54:45 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) In-Reply-To: Date: Mon, 14 Jan 2013 12:54:42 -0500 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <42E4F513-0412-440D-BBBB-589F2A2463BD@macvicar.net> References: To: Ben Ramsey X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQnoqXHb3nUxaaqNBVJuz5DTfGP1+Xn6CfkI90vBo9DOCiAhreIy+Zg9WMzbHx3ofUFLsfKc Subject: Re: [PHP-DEV] Re: [VOTE] array_column() function From: scott@macvicar.net (Scott MacVicar) On 14 Jan 2013, at 11:37, Ben Ramsey wrote: > On 1/11/13 6:17 PM, Ben Ramsey wrote: >> I've opened voting for the array_column() function RFC. >>=20 >> You can vote at https://wiki.php.net/rfc/array_column#voting >=20 > I have updated the pull request by removing the array_pluck() alias. I = favor the array_column() alias, as it is more in keeping with other = function names like array_keys() and array_values(), which do not have = verbs in them. >=20 > If the RFC is accepted, I will submit a new pull request against the = 5.5 branch and close the current pull request against the 5.3 branch. If = I should do that now, please let me know, and I'll go ahead and take = care of it. I've talked about the Facebook version of this when the key bit got = added, but we have 2 other methods to go with it. mpull() which does methods = https://github.com/facebook/libphutil/blob/master/src/utils/utils.php#L110= ppull() which does properties = https://github.com/facebook/libphutil/blob/master/src/utils/utils.php#L184= Not sure if these should be added separately? The property version is = good for PDO when using FETCH_CLASS. - S=