thinkphp嵌套循环
数组array(1){[0]=>array(3){["post_id"]=>string(1)"5"["post_title"]=>string(48)"title"["...
数组
array(1) {
[0] => array(3) {
["post_id"] => string(1) "5"
["post_title"] => string(48) "title"
["post_tag"] => array(3) {
[0] => string(6) "御医"
[1] => string(6) "世家"
[2] => string(12) "高氏家族"
}
模板
<volist name="article" id="vo">
<volist name="vo['sub']" id="sub">
{$sub.post_tag}
</volist>
</volist>
麻烦帮帮忙,请问应该怎么写? 展开
array(1) {
[0] => array(3) {
["post_id"] => string(1) "5"
["post_title"] => string(48) "title"
["post_tag"] => array(3) {
[0] => string(6) "御医"
[1] => string(6) "世家"
[2] => string(12) "高氏家族"
}
模板
<volist name="article" id="vo">
<volist name="vo['sub']" id="sub">
{$sub.post_tag}
</volist>
</volist>
麻烦帮帮忙,请问应该怎么写? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询