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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:31:45
Original
1315 people have browsed it

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

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

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

Related labels:
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
Latest Issues
smarty turns on caching garbled characters
From 1970-01-01 08:00:00
0
0
0
Why does tp use smarty template? ?
From 1970-01-01 08:00:00
0
0
0
How do you use smarty to integrate laravel5?
From 1970-01-01 08:00:00
0
0
0
Two ways to install smarty
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template