2014-12-03 108 views

回答

1

檢查

foreach($mainarray as $s){ 
    foreach ($s as $v){ 
     $str .=$v.','; 
    } 
} 
echo $str; 
1

這將很好地工作:

$array = array(array(1, 4), array(5, 0), array(0, 8), array(10, 27)); 

$result = array(); 

foreach ($array as $val) 
{ 
    $result = array_merge($result, $val); 
} 

print_r($result);