Ask PHP or JS for the called loop list hyperlink text for different colors this post was last edited by mf0916 at 2015-06-02:49:22 my HTML call code is like this {loop & nbsp; $ ad_types & nbsp; $ u & nbsp; $ v} & lt; a & nbsp; href $ u & nbsp; target_bla: Search PHP or JS for the called loop list hyperlink text for different colors
This post was last edited by mf0916 on 18:49:22
My HTML call code is like this.
{loop $ad_types $u $v}
$v
{/loop}
The PHP code 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 is
Http://www.csdn.net | Hello CSDN
Http://www.google.com | Hello Google
Http://www.baidu.com | Baidu
Http://www.163.com | NetEase
Online Solutions
------ Solution ----------------------
JQuery