An 'array_column' re-indexing trick in PHP
array_column function has been a welcome addition to the PHP language, allowing us to remove the need for common-place
array_map invocations that just pluck specific values from arrays.
However, I just found out that you can provide a third argument that allows you to define what the returning arrays keys will be.
This combined with
null for the value argument allows you to easily re-index an array based on a key value whilst maintaining the original arrays values and ordering.