请问一下该如何解析出这个数组呢?谢谢了。
Array
(
[doctorDate] => Array
(
[0] => Array
(
[doctorOfDate] => 2013-10-02
[orderingCount] => 12
)
[1] => Array
(
[doctorOfDate] => 2013-10-03
[orderingCount] => 8
)
)
)
test=array('doctorDate'=>
array(0=>array('doctorDate'=>'2013-10-02',
'orderingCount'=>12),
1=>array('doctorDate'=>'2013-10-03',
'orderingCount'=>8)
)
)
<?php
$test=array('doctorDate'=>
array(0=>array('doctorDate'=>'2013-10-02',
'orderingCount'=>12),
1=>array('doctorDate'=>'2013-10-03',
'orderingCount'=>8)
)
);
foreach ($test as $arr)
{
foreach ($arr as $value)
{
echo $value['doctorDate'].' '.$value['orderingCount'].'<br>';
}
}
?>