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

Detailed explanation of splicing strings based on smarty_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:06:15872browse

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:
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