详解php用curl调用接口方法,get和post两种方式 首先是客户端执行方法ApiModel.php:<?php/***模拟post进行url请求*@paramstring$url*@paramarray$post curl调用接口