PHP Array Get Value by Key Multidimensional

If you have Multidimensional array, you can get any value by key from all arrays. There is no need to write traditional loop. You can do it with single line code.

[php]
array(
array(
[id] => 1,
[name] => "Mike"
),
array(
[id] => 2,
[name] => "John"
),
array(
[id] => 3,
[name] => "William"
),
)
[/php]

Since php 5.5, you can use array_column()

[php]
$ids = array_column($users, ‘id’);
[/php]

Since php 5.3, you can use array_map()

[php]
$ids = array_map(function ($ar) {
return $ar[‘id’];
}, $all);
[/php]