Home > Backend Development > PHP Tutorial > smarty模板引擎里怎么进行字符串动态拼接呢

smarty模板引擎里怎么进行字符串动态拼接呢

WBOY
Release: 2016-06-13 11:53:40
Original
1049 people have browsed it

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

        


        

我想$value.seller_id 这个值是多少那么star_02  中的02就是多少,就是02是动态的,在模板里如何拼接呢?谢谢
------解决方案--------------------
直接">不行吗
------解决方案--------------------

        

        


没看错 就是这么简单
------解决方案--------------------
{$value.seller_id} 放在span class="star_02">里不行?  span class="star_{$value.seller_id} ">???
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