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

求高手帮忙解答上

WBOY
Release: 2016-06-13 10:43:03
Original
875 people have browsed it

求高手帮忙解答下

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);?>
Copy after login

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

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

探讨

....奇怪了

Array
(
)
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template