Say for example you just queried a database and you recieved this 2D array.
$results = array( array(\'id\' => 1, \'name\' => \'red\' , \'spin\' =&
Starting PHP 5.3, you can use this pretty call with lambda function:
$names = array_map(function ($v){ return $v['name']; }, $results);
This will return array sliced by 'name' dimension.