Home > Backend Development > PHP Tutorial > 怎么写一个接口,URL形式提供给第三方

怎么写一个接口,URL形式提供给第三方

WBOY
Release: 2016-06-13 12:24:16
Original
1196 people have browsed it

如何写一个接口,URL形式提供给第三方?
PHP想写一个接口,URL形式提供给第三方,第三方可以通过URL返回的json来取值。
这个接口怎么写呢,请大家帮帮忙,谢谢~~
------解决思路----------------------
echo json_encode($xx);
------解决思路----------------------
接口文件 里用get获取url参数,然后返回json

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