最近面试有道题是关于PHP如何获取接口的方式的 1,Get请求的接口可以用file_get_contents() 函数 或者curl -get, 2,POST请求的接口 只能用 curl-post 注,curl是PHP的扩展