嗨我需要解析一个多维数组
$myArray = array(
array('id' => 6),
array(
'id' => 3,
'children' => array(
'id' => 5,
'children' => array(
'id' => 7,
'children' => array(
array('id' => 4),
array('id' => 1)
),
array('id' => 8)
)
)
),
array('id' => 2)
);
这是我需要作为字符串或数组的输出...
6
3
3,5
3,5,7
3,5,7,4
3,5,7,1
3,5,8
2