Home  >  Article  >  Backend Development  >  遍历数组,该怎么解决

遍历数组,该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:35:07876browse

遍历数组
前台这么遍历数组应该没有错吧

<br />
<!--{loop $allinpaybank $bank}--><br />
    <input id="check-{$bank}" type="radio" name="payment" value="{$bank}" /><br />
    <label for="check-{$bank}" class="{$bank} bankicon"></label><br />
<!--{/loop}--><br />


遍历在结果在页面显示的是
{loop $allinpaybank $bank}⊙{/loop} 


⊙为 checkbox

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn