volist嵌套循环无法输出,是我哪儿没弄对吗?

浏览:1594 发布日期:2013/06/06 分类:求助交流 关键字: volist 嵌套
下面是dump出来的数据
array(2) {
[0] => array(10) {
["id"] => string(2) "14"
["classid"] => string(1) "1"
["title"] => string(21) "综合测试题目三"
["pic"] => NULL
["orderlist"] => string(1) "2"
["createtime"] => string(19) "2013-06-05 23:32:00"
["name"] => string(12) "综合评测"
["aid"] => string(2) "14"
["bid"] => string(1) "1"
["answer"] => array(3) {
[0] => array(5) {
["id"] => string(2) "13"
["qid"] => string(2) "14"
["tag"] => string(7) "标签1"
["title"] => string(7) "答案1"
["score"] => string(1) "1"
}
[1] => array(5) {
["id"] => string(2) "14"
["qid"] => string(2) "14"
["tag"] => string(7) "标签2"
["title"] => string(7) "答案2"
["score"] => string(1) "2"
}
[2] => array(5) {
["id"] => string(2) "15"
["qid"] => string(2) "14"
["tag"] => string(7) "标签3"
["title"] => string(7) "答案3"
["score"] => string(1) "3"
}
}
}
[1] => array(10) {
["id"] => string(2) "12"
["classid"] => string(1) "1"
["title"] => string(9) "测试一"
["pic"] => NULL
["orderlist"] => string(1) "1"
["createtime"] => string(19) "2013-06-05 23:10:46"
["name"] => string(12) "综合评测"
["aid"] => string(2) "12"
["bid"] => string(1) "1"
["answer"] => array(3) {
[0] => array(5) {
["id"] => string(1) "7"
["qid"] => string(2) "12"
["tag"] => string(7) "标签1"
["title"] => string(7) "答案1"
["score"] => string(1) "1"
}
[1] => array(5) {
["id"] => string(1) "8"
["qid"] => string(2) "12"
["tag"] => string(7) "标签2"
["title"] => string(7) "答案2"
["score"] => string(1) "2"
}
[2] => array(5) {
["id"] => string(1) "9"
["qid"] => string(2) "12"
["tag"] => string(7) "标签3"
["title"] => string(7) "答案3"
["score"] => string(1) "3"
}
}
}
}
但是,下面的不能第二个循环不能输出,2.2版本的时候一直就是这样没问题啊。
<volist name="infolist" id="vo">
<volist name="vo['answer']" id="ao">
{$ao['tag']}
</volist>
</volist>
最佳答案
评论( 相关
后面还有条评论,点击查看>>