Say for example you just queried a database and you recieved this 2D array.
$results = array( array(\'id\' => 1, \'name\' => \'red\' , \'spin\' =&
For those of you that cannot upgrade to PHP5.5 right now and need this function, here is an implementation of array_column.
PHP5.5
array_column
function array_column($array, $column){ $a2 = array(); array_map(function ($a1) use ($column, &$a2){ array_push($a2, $a1[$column]); }, $array); return $a2; }