The input array should be multidimensional or an array of objects.
For example,
php
$array = [
['id' => '123', 'data' => 'abc'],
['id' => '345', 'data' => 'def'],
];
$result = ArrayHelper::getColumn($array, 'id');
the result is: ['123', '345']
using anonymous function
$result = ArrayHelper::getColumn($array, function ($element) {
return $element['id'];
});