糗百PHP版
<?php require 'phpQuery/phpQuery.php';
phpQuery::newDocumentFile('http://hxyl.net/');
$art = pq('#content .entry');
foreach($art as $k=>$v){
print '标题:'.pq($v)->find('h2')->html().'<br>';
print '内容:'.pq($v)->find('p:eq(0)')->html().'<hr>';
}
php免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










