@php //test $arr = array(0,1,2,3,4,5); foreach($arr as $i){ $a[$i]['name'] = "finding"; $a[$i]['code'] = "0001"; for($e=0;$e