Home  >  Article  >  Backend Development  >  PHP calling interface problem

PHP calling interface problem

WBOY
WBOYOriginal
2016-10-22 00:14:23815browse

http://localhost/openUser.php...

OpenUser.php here is equivalent to an interface, where get_user_list is an API. Is this explained?

Reply content:

http://localhost/openUser.php...

OpenUser.php here is equivalent to an interface, where get_user_list is an API. Is this explained?

OpenUser here can only be said to be a set of interfaces, a set of user interfaces. And get_user_list is the real interface.
Note that interface is Interface, which is the I in API, so interface should be synonymous with API.
The commonly referred to as a collection of interfaces, which is openUser here, will be represented as APIs.
However, there is no plural in Chinese, so it can also be collectively called interfaces.

Of course, the design of this interface address and request method is also very simple.

openUser.php is the file name, get_user_list is a function, which is the request processing operation, type=json data request format

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