<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_30398"> <div class="blockcode"> <div id="code_t7q"><ol> <li> <li><?php<li>/**<li>* 将URL中的某参数设为某值<li>* link:bbs.it-home.org<li>* date:2013/2/27<li>*/<li>function url_set_value($url,$key,$value) <li>{ <li>$a=explode('?',$url); <li>$url_f=$a[0]; <li>$query=$a[1]; <li>parse_str($query,$arr); <li>$arr[$key]=$value; <li>return $url_f.'?'.http_build_query($arr); <li>}<li>?></li> </ol></div> <em onclick="copycode($('code_t7q'));">复制代码</em> </div> </td></tr></table> <div id="comment_30398" class="cm"> </div> <div id="post_rate_div_30398"></div> <br><br>