<?php $arr = array ( "det1" => [1,2,3,4], "det2" => [5,6] ); $new= []; Foreach($arr as $sub){ $new = array_merge($new, $sub); } var_dump($new);
You have javascript disabled. You will not be able to edit any code.