How can I insert a character in this array
foreach ($_GET as $key=>$value) {
echo "$key=".urldecode($value)."<br/>";
}
the result is:
id=http://google.com/?var=234
k=234
ks=333
How can I insert the "&" in this array so it would output like this.
$param = "id=http://google.com/?var=234&k=234&ks=33开发者_如何转开发3";
Use http_build_query()
echo http_build_query($_GET);
精彩评论