<?PHP
$key
=
"电脑"
;
$url
'http://m.baidu.com/s?word='
.
;
$result
=
file_get_contents
(
);
$pattern
'#class="resitem".*?<a.*?href="(.*?)".*?>(.*?)</a>#si'
;
preg_match_all(
,
$matches
);
echo
'<pre>'
;
[1]);