📜  将多维数组转换为一维php代码示例

📅  最后修改于: 2022-03-11 14:54:49.459000             🧑  作者: Mango

代码示例2
$singleArray = []; 
foreach ($parentArray as $childArray) 
{ 
    foreach ($childArray as $value) 
    { 
    $singleArray[] = $value; 
    } 
}