php 看糗百简单PHP版
看糗百简单PHP版 [代码片段(9行)]
<?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>';
}
//该片段来自于http://outofmemory.cn
精彩图集
精彩文章






