My HTML calling code is like this
{Loop $ad _types $u $v} $v {/loop}
The code for PHP is
$adlist = explode ("\ n", Str_replace ("\ R", "", $ad)); foreach ($adlist as $url = + $value) {$arr =explode (' | ', $value); $ad _types[$arr [0]]= $arr [1]; }
The original code that needs to call the loop if it is
http://www.csdn.net | Hello csdnhttp://www.google.com | Hello Google http://www.baidu.com | Baidu Network Http://www.163.com | Netease
Solve online and other
Reply to discussion (solution)
Jquery
Hello Csdn
Hello Google
Baidu Network
Netease
What are you, a tab template?
The idea is that if your template has index, it is estimated that you can use index instead of $XX
{php $xx = 1} {Loop $ad _types $u $v} {if $xx%2==1} $v {Else} $v {/if}{php $xx ++}{/loop}
Jquery
Hello Csdn
Hello Google
Baidu Network
Netease
Thank you very much for using your code to achieve the results I want.