请问一下该如何解析出这个数组呢?谢谢了。 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>';}}?> nginx反向代理location问题 飞信短信发送的PHP类(散分) 求用户注册时php正则表达式验证 请问phpmailer在linux下怎么发邮件? 为什么PHP连接mssql一点反映都没有,初学,在线等 [PHP]关于PHP中的sleep函数值的问题 如何把一个Select的值传到php的变量中? 一个愚蠢的问题什么是session,session能干什么用,详细些好吗 我用setcookie为什么会报错??? 不用header函数,还有没有其它php语句可以实现页面跳转? 网上一段简单的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>';}}?>