Function 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.
Copyright:
Copyright (c) Ben Ramsey (http://benramsey.com)
License: MIT
Located at patch/arraycolumn.patch.php
License: MIT
Located at patch/arraycolumn.patch.php
Parameters summary
array |
$input = null |
<p>A multi-dimensional array (record set) from which to pull a column of values.</p> |
mixed |
$columnKey = null |
<p>The column of values to return. This value may be the integer key of the column you wish to retrieve, or it may be the string key name for an associative array.</p> |
mixed |
$indexKey = null |
<p>(Optional.) The column to use as the index/keys for the returned array. This value may be the integer key of the column, or it may be the string key name.</p> |
Return value summary
array
|
array |