<?php $a=[]; $a[0]=[1,2,3]; $a[1]=[4,5,6]; $a[2]=[7,8,9]; $a[3]=[1,4,7]; $result = []; array_walk_recursive($a,function($val) use (&$result){ $result[] = $val; }); var_dump($result);
You have javascript disabled. You will not be able to edit any code.