- array_column: documentation ( source)
- print_r: documentation ( source)
<?php
$array[] = array("name" => "name-1", "value" => "xxx");
$array[] = array("name" => "name-2", "value" => "yyy");
$first_names = array_column($array, 'value', 'name');
print_r($first_names);