我在數組中的數組:如何在數組中的foreach數組?
$tree = array(array($value => 7, $left => 2, $right => 3, $leftValue = 0),
array($value => 5, $left => 4, $right => "", $leftValue = 0),
array($value => 25, $left => 5, $right => 6, $leftValue = 0),
array($value => 3, $left => "", $right => "", $leftValue = 0),
array($value => 12, $left => "", $right => "", $leftValue = 0),
array($value => 17, $left => "", $right => "", $leftValue = 0));
怎麼做的foreach主陣列來獲得內部數組的值?
'foreach($ tree as $ entry){echo $ entry [$ value],PHP_EOL; }' –