把数组中的元素添加到链接中,形成新的链接

形成的链接: http://localhost/index/cate/listt?id=123&name=dopost ``` $uurl_array =array ( 'id' =>123, 'name' => 'dopost' ); $now_url = 'http://'.$_SERVER['HTTP_HOST'].'/index/cate/listt?'.http_build_query( $uurl_array ); echo $now_url; ``` > 更多精彩文章请关注 [王明昌博客](https://www.wangmingchang.com)
posted @ 2019-11-18 19:51  程序员子枫  阅读(251)  评论(0编辑  收藏  举报