我试图替换我的网址的两部分,但由于某种原因,当我使用parse_url将其放入数组时,其中一个网址出现了一个额外的单词出现我不知道它来自任何我试图这样做的地方。
//im trying to replace everything business_review_search?term=pizza&location=Los%20Angeles to &ywsid=xxxxxxxxxxxxxxxxxxx
//full url http://api.yelp.com/business_review_search?term=pizza&location=Los%20Angeles&ywsid=xxxxxxxxxxxxxxxxxx
//and replace it with search?find_loc=Griffith+Park%2FLos+Feliz%2C+Los+Angeles%2C+CA
//full url http://www.yelp.com/search?find_loc=Griffith+Park%2FLos+Feliz%2C+Los+Angeles%2C+CA
我试图让网址看起来像http://api.yelp.com/search?find_loc=Griffith+Park%2FLos+Feliz%2C+Los+Angeles%2C+CA,以使我的描述简短