I have this array...
Array
(
[result] => Success
[finals] => Array
(
[0] => Array
(
[id]
Saty answered it right. Here is the complete code:
<?php
$data = Array
(
'result' => 'Success',
'finals' => Array
(
Array
(
'id' => 633,
'name' => 'RESULT84'
),
Array
(
'id' => 766,
'name' => 'RESULT2'
),
Array
(
'id' => 22,
'name' => 'RESULT1'
)
)
);
$names = array_column($data['finals'], 'name','name');
print_r($names);
?>
Pass third parameter name
into array_column to make it key
$names = array_column($data['finals'], 'name','name');
print_r($names);