1 <? 2 $yurl=$row[yurl]; 3 $yurl_name=$row[yurl_name]; 4 5 $var=explode("|",$yurl); 6 $var2=explode("|",$yurl_name); 7 $z=0; 8 foreach($var as $v){?> 9 <a href="<?=$v?>"><?=$var2[$z++]?></a> 10 <? 11 } 12 ?>