本帖最后由 u011592778 于 2013-08-14 13:19:16 编辑
{%"22,2,2"|explode::","|@count%}
smarty这么写怎么为什么没有得到3呢? 用smarty该怎么写得到拆合后数组个数?
回复讨论(解决方案)
建议你用php算好后再传给smarty
建议你用php算好后再传给smarty
我我,就是想smarty有没办法做到。。。。
.................................
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