Let\'s assume I have an array of elements, which are arrays themselves, like so:
$array = [ [\'foo\' => \'ABC\', \'bar\' => \'DEF\'], [\'foo\'
Notice array-column can get index as well (third argument):
mixed $index_key = NULL
So just use as:
array_column($array, null, 'foo');