API interface development with php

For example: url interfaces file is: http: //url.com/api.php id = 001 interface file program: <php // get accepted by value $ id = $ _GET [ 'id']; // execution?? function api ($ id); // defined function function api ($ id) {// function body $ result = array (1,2,3); return $ result;}?>

Reproduced in: https: //my.oschina.net/itfanr/blog/195609

Guess you like

Origin blog.csdn.net/weixin_33743248/article/details/91799589