url地址中&轉義成&的復原方法

作者:星辰網絡工作室 日期:2019-06-05 瀏覽:3826

  傳的原參數“http://thirdqq.qlogo.cn/g?b=oidb&k=kHRuu5xxTOcXog6lrEMq4A&s=40”

  接受的參數“http://thirdqq.qlogo.cn/g?b=oidb&k=kHRuu5xxTOcXog6lrEMq4A&s=40”

  ‘&’被轉義成了‘&’,

  所以 file_get_contents()在獲取內容的時候就報錯了, failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Req

  解決辦法:

  htmlspecialchars_decode()


香港三级日本三级人妇三级四