Home  >  Article  >  Backend Development  >  求高手帮忙解答上

求高手帮忙解答上

WBOY
WBOYOriginal
2016-06-13 10:43:03827browse

求高手帮忙解答下

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $baidu = file_get_contents("http://www.baidu.com/s?wd=site:www.baidu.com");        preg_match('/找到相关结果数(.+)个/', $baidu, $baidu_site_num);        print_r($baidu_site_num);?>

为什么匹配不到结果呢? 求解
该怎么写呢

------解决方案--------------------
文件编码先弄成UTF-8

探讨

....奇怪了

Array
(
)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn