Heim > Artikel > Backend-Entwicklung > php关键字瓜分
php关键字分割
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $old_guanjianzi=我,的,php; 标签:<a href="tag.php?so=" foreach as urlencode>><?php echo $v;?></a>
$old_guanjianzi= "我,的,php"; $ar = explode(',', $old_guanjianzi); foreach($ar as $v) echo "<a href="tag.php?so=%7B%24v%7D">{$v}</a> "; <br><font color="#e78608">------解决方案--------------------</font><br>
echo "<a href="tag.php?so=%22.urlencode(%24v).%22">{$v}</a> ";?> <div class="clear"> </div>