array_column - chung-leong/qb GitHub Wiki

array_column - Return the values from a single column in the input array

array array_column( array $array, uint32 $index )

array_column() returns the values from a single column of the input array, identified by column_key.

Parameters:

array - The input array. It must have at least 2 dimensions.

index - The column to return, with 0 being the first column.

Return Value:

An array of values representing a single column from the input array.

Version

1.4 and above.