Rumah >pembangunan bahagian belakang >tutorial php >用phpquery采集的有关问题
用phpquery采集的问题
我用phpquery采集网页的内容
以下是
<br />phpQuery::newDocumentFile($url); <br />$img=pq('.productImageGrid #prodImageCell')->html();<br />echo $img;<br />$img_txt=pq('.productImageGrid #prodImageCell')->text();<br />