Array
(
[0] => Array
(
[Detail] => Array
(
[detail_id] => 1
)
)
[1] => Array
(
[Detail] => Array
(
[detail_id] => 4
)
)
)
If you want to get
detail_id
to get1,4
.
$b = array_map(function($item) { return $item['Detail']['detail_id']; }, $test); echo implode(",",$b);
No comments:
Post a Comment