- array_column: documentation ( source)
- var_export: documentation ( source)
<?php
$array = [
['attribute' => 1.5, 'value' => 'one & a half'],
['attribute' => 2, 'value' => 'two'],
['attribute' => 1, 'value' => 'one'],
];
var_export(
array_column($array, 'value', 'attribute')
);