Appearance
Function: array_column()
array_column<
T,K>(array,column):T[K][]
Defined in: src/php-arrays.ts:307
Return the values from a single column in the input array.
Type Parameters
T
T
K
K extends string | number | symbol
Parameters
array
T[]
The source array of objects
column
K
The column to retrieve
Returns
T[K][]
The array of column values