Home > Article > Backend Development > Detailed explanation of splicing strings based on smarty_PHP tutorial
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