Skip to content

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

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.