rfc:array_column

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:array_column [2013/01/12 17:27] – Adding Example #5 ramseyrfc:array_column [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Request for Comments: array_column ====== ====== Request for Comments: array_column ======
  
-  * Version: 2.2+  * Version: 2.4
   * Date: 2013-01-11   * Date: 2013-01-11
   * Author: Ben Ramsey <ramsey@php.net>   * Author: Ben Ramsey <ramsey@php.net>
-  * Status: Voting+  * Status: Implemented in PHP 5.5
   * First Published at: http://wiki.php.net/rfc/array_column   * First Published at: http://wiki.php.net/rfc/array_column
  
Line 18: Line 18:
  
   array array_column(array $input, mixed $columnKey[, mixed $indexKey])   array array_column(array $input, mixed $columnKey[, mixed $indexKey])
-  array array_pluck(array $input, mixed $columnKey[, mixed $indexKey]) 
  
 ''array_column()'' returns the values from a single column of the //**input**// array, identified by the //**columnKey**//. Optionally, you may provide an //**indexKey**// to index the values in the returned array by the values from the //**indexKey**// column in the //**input**// array. ''array_column()'' returns the values from a single column of the //**input**// array, identified by the //**columnKey**//. Optionally, you may provide an //**indexKey**// to index the values in the returned array by the values from the //**indexKey**// column in the //**input**// array.
- 
-''array_pluck()'' is an alias of ''array_column()''. 
  
 ==== Parameters ==== ==== Parameters ====
Line 237: Line 234:
 Voting ends not before Friday, January 18, 2013. The PHP language is not changed, so a 50% + 1 majority is required. Voting ends not before Friday, January 18, 2013. The PHP language is not changed, so a 50% + 1 majority is required.
  
-<doodle title="Accept array_column() for inclusion in PHP?" auth="user" voteType="single" closed="false">+<doodle title="Accept array_column() for inclusion in PHP?" auth="user" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 248: Line 245:
   * 2.1 (2013-01-11): Adding link to new pull request: https://github.com/php/php-src/pull/257   * 2.1 (2013-01-11): Adding link to new pull request: https://github.com/php/php-src/pull/257
   * 2.2 (2013-01-11): Opened voting   * 2.2 (2013-01-11): Opened voting
 +  * 2.3 (2013-01-12): Updates to the RFC (new examples, etc.), based on mailing list feedback
 +  * 2.4 (2013-01-14): Removed array_pluck() alias
rfc/array_column.1358011648.txt.gz · Last modified: 2017/09/22 13:28 (external edit)