thinkphp volist 输出值
[0]=>Array([id]=>38[token]=>sztbny1426580350[name]=>气囊指示灯[type]=>4[sort]=>1[state_38]...
[0] => Array
(
[id] => 38
[token] => sztbny1426580350
[name] => 气囊指示灯
[type] => 4
[sort] => 1
[state_38] => 2
[detection_38] => 11
[advice_38] => 111
)
[1] => Array
(
[id] => 28
[token] => sztbny1426580350
[name] => 安全带
[type] => 4
[sort] => 1
[state_28] => 1
[detection_28] => 2222
[advice_28] =>
)
<volist name="checkset" id="vo">
<tr>
<th width="120">{pigcms:$vo['name']}:</th>
<td>
<input type="text" id="detection_{pigcms:$vo['id']}" name="detection_{pigcms:$vo['id']}" value="{pigcms:$vo['detection_1']}"/>
</td>
</tr>
</volist>
value="{pigcms:$vo['detection_28']}"
请问我要如何循环输出 detection_28 38里面的值 展开
(
[id] => 38
[token] => sztbny1426580350
[name] => 气囊指示灯
[type] => 4
[sort] => 1
[state_38] => 2
[detection_38] => 11
[advice_38] => 111
)
[1] => Array
(
[id] => 28
[token] => sztbny1426580350
[name] => 安全带
[type] => 4
[sort] => 1
[state_28] => 1
[detection_28] => 2222
[advice_28] =>
)
<volist name="checkset" id="vo">
<tr>
<th width="120">{pigcms:$vo['name']}:</th>
<td>
<input type="text" id="detection_{pigcms:$vo['id']}" name="detection_{pigcms:$vo['id']}" value="{pigcms:$vo['detection_1']}"/>
</td>
</tr>
</volist>
value="{pigcms:$vo['detection_28']}"
请问我要如何循环输出 detection_28 38里面的值 展开
2015-04-13
展开全部
{$vo["'detection_'.$vo['id']"]}
php点击链接加入群【西安PHP提升群】:http://jq.qq.com/?_wv=1027&k=dyf0y3
php点击链接加入群【西安PHP提升群】:http://jq.qq.com/?_wv=1027&k=dyf0y3
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询