Home  >  Article  >  Backend Development  >  程序访问一个网页 有哪些方法可以取得其返回值?解决方法

程序访问一个网页 有哪些方法可以取得其返回值?解决方法

WBOY
WBOYOriginal
2016-06-13 10:46:28820browse

程序访问一个网页 有哪些方法可以取得其返回值?
这是一个接口,我程序访问这个接口了会返回一个经过JSON编码的对象数组的字符串,请问有哪些方法可以取得该数组呢?

------解决方案--------------------
cURL
socket
file_get_contents
------解决方案--------------------

探讨
这是一个接口,我程序访问这个接口了会返回一个经过JSON编码的对象数组的字符串,请问有哪些方法可以取得该数组呢?
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
Previous article:mysql排序有关问题Next article:怎么采集不被发现