根据商品详情链接,抓取商品信息 $url = 'https://detail.1688.com/offer/40009088544.html?spm=a262gg.11982098.jl3f2q8t.2.714a442aN2DSNF&resourceId=648056&udsPoolId=772896'; catchData($url); function catchData($url) { header("Content-type: text/html; charset=gb2312")