码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2019-11-18 20:27:42      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:关注   url   文章   tps   min   listt   post   hang   https   

形成的链接: 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)

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

标签:关注   url   文章   tps   min   listt   post   hang   https   

原文地址:https://www.cnblogs.com/wmc1125/p/11884598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!