日期:2014-05-17 浏览次数:20498 次
$old_guanjianzi=我,的,php; 标签:<A href=tag.php?so= <?php $arr=explode(",",$old_guanjianzi); foreach ($arr as $v);echo urlencode( $v);?>><?php echo $v;?></A>
$old_guanjianzi= "我,的,php"; $ar = explode(',', $old_guanjianzi); foreach($ar as $v) echo "<a href='tag.php?so={$v}'>{$v}</a> ";
------解决方案--------------------
echo "<a href='tag.php?so=".urlencode($v)."'>{$v}</a> ";?>