请问一下该如何解析出这个数组呢?谢谢了。 Array( [doctorDate] => Array ( [0] => Array ( [doctorOfDate] => 2013-10-02 [orderingCount] => 12 ) [1] => Array ( [doctorOfDate] => 2013-10-03 [orderingCount] => 8 ) ) ) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 假设数组名为:testtest['doctorDate'][0]['doctorOfDate']=2013-10-02test['doctorDate'][0]['orderingCount']=12test['doctorDate'][1]['doctorOfDate']=2013-10-03test['doctorDate'][1]['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>';}}?> 二叉树的中序遍历 Curl号称强大,却在抓花瓣网的首页时,怎么也不能成功,求解!!!!!!! 如何接受多个参数,并根据接收到的参数进行对应字段更新? 这是怎么回事高手指点啊,未定义 php个位数前面自动加零 PHP中如何实现跳出程序 关于php配置的问题,急 求在如下连接中获得url地址的正则表达式 PHP有没有类似ASP中Request.BinaryRead()的函数? 如何用PHP调用WebService? 网上一段简单的preg_match替换 不明 多表关联调用,有点复杂,高手帮忙下谢谢了
test['doctorDate'][0]['doctorOfDate']=2013-10-02
test['doctorDate'][0]['orderingCount']=12
test['doctorDate'][1]['doctorOfDate']=2013-10-03
test['doctorDate'][1]['orderingCount']=8
这个数组的定义是: test=array('doctorDate'=>
array(0=>array('doctorDate'=>'2013-10-02',
'orderingCount'=>12),
1=>array('doctorDate'=>'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)
)
);foreach ($test as $arr)
{
foreach ($arr as $value)
{
echo $value['doctorDate'].' '.$value['orderingCount'].'<br>';}}?>