📜  php 将多维对象转换为数组 - PHP 代码示例

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

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