Re: [請益] phpQuery

看板PHP作者 (ㄚ琪)時間16年前 (2009/03/16 17:34), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
範例: require 'phpQuery.php'; $url = 'http://tzangms.com/blog'; $html = file_get_contents($url); phpQuery::newDocument($html)->find('head'); $title = pq('head > title')->text(); $feed_url = pq('head > link[rel=alternate]:first')->attr('href'); echo $title; echo $feed_url; 手冊: http://code.google.com/p/phpquery/ ※ 引述《DemoX (DemoX)》之銘言: : 我想請問各位高手 : phpQuery是做什麼的 : 我看了個例子我不太懂他怎麼做運用在我的php上 : http://doublekai.org/blog/?p=541 : 我想請益各位高手 對他的介紹以及運用 : 謝謝各位看過這篇文章的人 -- 工作達人 http://job.achi.idv.tw 要改變生活嗎?請上生活創新之家 ㄚ琪琪的家 http://achi.idv.tw -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.115.78.117
文章代碼(AID): #19lXqZE0 (PHP)
討論串 (同標題文章)
本文引述了以下文章的的內容:
2
4
16年前, 03/15
完整討論串 (本文為第 2 之 2 篇):
2
4
16年前, 03/15
文章代碼(AID): #19lXqZE0 (PHP)