Home >Backend Development >PHP Tutorial >PHP calling interface problem
http://localhost/openUser.php...
OpenUser.php here is equivalent to an interface, where get_user_list is an API. Is this explained?
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