- array_column: documentation ( source)
- print_r: documentation ( source)
<?php
$array = [
"success" => true,
"bundle" => [
[
"StreetDirPrefix" => "SW"
],
[
"StreetDirPrefix" => "NE"
,
]
]
];
$res = array_column($array["bundle"], "StreetDirPrefix");
print_r($res);