Home > Backend Development > PHP Tutorial > smarty模板引擎里如何进行字符串拼接呢?

smarty模板引擎里如何进行字符串拼接呢?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:46:21
Original
1182 people have browsed it





我想$value.seller_id 这个值是多少那么star_02 中的02就是多少,就是02是动态的,在模板里如何拼接呢?谢谢

回复内容:





我想$value.seller_id 这个值是多少那么star_02 中的02就是多少,就是02是动态的,在模板里如何拼接呢?谢谢

曾经学过php,记得smarty模版引擎好像是php的东西,但是不确定你的就是啊,如果是的话,php代码是可以和html融合到一起的,拼接的方式:<span>star_=$value.seller_id></span>

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