Hey, there's even a Composer package: https://github.com/ramsey/array_column :)