Home  >  Article  >  Backend Development  >  smarty模板处置里面有不有类似split的函数

smarty模板处置里面有不有类似split的函数

WBOY
WBOYOriginal
2016-06-13 13:25:281090browse

smarty模板处理里面有不有类似split的函数
smarty模板处理里面有不有类似split的函数

------解决方案--------------------
{assign var=foo value=", "|explode:$var_to_explode} 

不过,通常建议在php处理完了再 assign 给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