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

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

WBOY
Release: 2016-06-13 13:25:28
Original
1111 people have browsed it

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

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

不过,通常建议在php处理完了再 assign 给smarty.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template