Home >Backend Development >PHP Tutorial >怎么获取页面内容

怎么获取页面内容

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:27:18851browse

如何获取页面内容。
当我输入一个URL时,URL返回在页面的内容。我如何遍历出来。
比如:www.cdn.net/uid=1
然后页面内将显示.uid=1 uname=2
  uid=2 uname=3
  uid=3 uname=4
我如何将它遍历出来。。。求代码。
我已经用file_get_contents整到手了。就是还没遍历~


------解决方案--------------------
$obj = json_decode($str);
echo $obj->server_info->server_number;

类似的自己搞吧....google一下,然后自己动手能学到很多知识,比等着别人告诉你要强...

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