Home > Backend Development > PHP Tutorial > Detailed explanation of splicing strings based on smarty_PHP tutorial

Detailed explanation of splicing strings based on smarty_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 15:06:15
Original
926 people have browsed it

The smarty problem that troubles everyone has appeared again, which is splicing strings. It is actually very simple. A long time ago, we used the ancient method, which was <{assign var=? value=?}> and then implemented the string In fact, a simple and easy way to splice is "|cat:"
<{foreach item=i from=$abc}>
<{foreach item=j from=$def}> ;
                                                                                                                                                                     /foreach}>
That’s it, simple and easy to use, but sometimes you still need to use the <{assign}> method. Let’s analyze the specific problems in detail


http://www.bkjia.com/PHPjc/327633.html

truehttp: //www.bkjia.com/PHPjc/327633.htmlTechArticleThe smarty problem that bothers everyone has appeared again, which is splicing strings. It is actually very simple. A long time ago, we They all use the ancient method, that is, {assign var=? value=?} and then implement it...
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