class ArrayExt

Methods

static array
column(array $array = null, mixed $column_key = null, mixed $index_key = null)

Return the values from a single column in the input array

Details

at line 23
static array column(array $array = null, mixed $column_key = null, mixed $index_key = null)

Return the values from a single column in the input array

Parameters

array $array A multi-dimensional array (record set) from which to pull a column of values.
mixed $column_key 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. It may also be NULL to return complete arrays (useful together with index_key to reindex the array).
mixed $index_key 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.

Return Value

array