PHPArrayarray_column

Returns the values from a single column in the input array.

Syntax

array_column(array $array, int|string|null $column): array