The requirement of this blog is that I need to send an http request such as 127.0.0.1? A = 123 & B = 456 & c = 789 obtain all the get parameters and concatenate them to the end of test.com. That is, the final ideal uri should be test.com? A = 123 & B = 456 & c = 789 can be implemented in two ways. We recommend that you first google, I just didn't use google to cause rework $ _ SERVER ["QUERY_STRING"]. This is the simplest method, but most people may not be familiar with this SERVER variable, [html] $ _ SERVER ["QUERY_STRING"]: query string code [php] $ base = "test.com"; $ str = $ _ SERVER ["QUERY_STRING"]; $ uri = $ base. $ str; echo $ uri; effect $ _ GET array for loop concatenating ideas most people encounter this requirement. The first response should be a for loop GET array, write an implementation code to share the Code [php] $ str = "test.com? "; $ Count = count ($ _ GET); $ I = 0; www.2cto.com foreach ($ _ GET as $ key => $ value) {if ($ I = $ count-1) {$ str. = $ key. "= ". $ value;} else {$ str. = $ key. "= ". $ value. "&" ;}$ I ++;} echo $ str; Effect